/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Grid Overlay System */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Dotted grid lines */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

/* Intersection points */
.grid-intersection {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(var(--border));
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0.7;
}

.grid-intersection::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: hsl(var(--foreground) / 0.1);
  transform: scale(0);
  transition: all 0.3s ease;
}

.grid-intersection:hover::before {
  transform: scale(1);
}

.grid-intersection:hover {
  background: hsl(var(--foreground));
  transform: translate(-50%, -50%) scale(1.4);
  opacity: 1;
}

/* Cross intersections */
.grid-cross {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 2;
}

.grid-cross::before,
.grid-cross::after {
  content: '';
  position: absolute;
  background: hsl(var(--border));
  transition: all 0.3s ease;
  opacity: 0.7;
}

.grid-cross::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.grid-cross::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.grid-cross:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

.grid-cross:hover::before,
.grid-cross:hover::after {
  background: hsl(var(--foreground));
  opacity: 1;
}

/* Box intersections */
.grid-box {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid hsl(var(--border));
  transform: translate(-50%, -50%) rotate(45deg);
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0.7;
}

.grid-box:hover {
  border-color: hsl(var(--foreground));
  transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
  opacity: 1;
}

/* Section Borders/Dividers System */
/* Vertical borders on sections */
.section-vertical-borders::before,
.section-vertical-borders::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: hsl(var(--border));
  opacity: 0.6;
  z-index: 1;
}

/* Mobile: align with px-4 padding (1rem = 16px) */
@media (max-width: 767px) {
  .section-vertical-borders::before {
    left: 1rem;
  }
  
  .section-vertical-borders::after {
    right: 1rem;
  }
}

/* Desktop: use percentage positioning */
@media (min-width: 768px) {
  .section-vertical-borders::before {
    left: 15%;
  }

  .section-vertical-borders::after {
    right: 15%;
  }
}

/* Diamond intersection - filled square diamond */
.section-intersection {
  position: absolute !important;
  width: 12px;
  height: 12px;
  background: hsl(var(--foreground) / 0.8) !important;
  transform: rotate(45deg);
  opacity: 1;
  z-index: 9999 !important;
}

/* Custom scrollbar styles */
* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
