/* ========================================
   BrightMind Corporate Site - Custom Styles
   Black-based Cyber/Tech Design
   ======================================== */

/* Tailwind CDN Configuration (via <script> in HTML) */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----------------------------------------
   Background Pattern - Subtle Grid
   ---------------------------------------- */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-grid-pattern-dense {
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ----------------------------------------
   Accent Colors & Utilities
   ---------------------------------------- */
.text-accent {
  color: #0ff;
}

.border-accent {
  border-color: #0ff;
}

.bg-accent {
  background-color: #0ff;
}

/* Glow effects - very subtle */
.glow-accent {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.text-glow {
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ----------------------------------------
   Header Styles
   ---------------------------------------- */
.header-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------
   Card Styles
   ---------------------------------------- */
.card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 255, 255, 0.2);
}

/* ----------------------------------------
   Button Styles
   ---------------------------------------- */
.btn-primary {
  background-color: transparent;
  border: 1px solid #0ff;
  color: #0ff;
  padding: 12px 32px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0ff;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 12px 32px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------
   Form Styles
   ---------------------------------------- */
.form-input {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 16px;
  width: 100%;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #0ff;
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------
   Icon Container
   ---------------------------------------- */
.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background-color: transparent;
  transition: all 0.3s ease;
}

.icon-container svg {
  width: 24px;
  height: 24px;
  color: #0ff;
}

.card:hover .icon-container {
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* ----------------------------------------
   Section Divider
   ---------------------------------------- */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.3) 50%,
    transparent
  );
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes scan-line {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Scan line effect for hero */
.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.1),
    transparent
  );
  animation: scan-line 8s linear infinite;
  pointer-events: none;
}

/* ----------------------------------------
   Decorative Elements
   ---------------------------------------- */
.corner-accent {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(0, 255, 255, 0.3);
}

.corner-accent.top-left {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-accent.top-right {
  top: 0;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-accent.bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-accent.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* ----------------------------------------
   Mobile Menu
   ---------------------------------------- */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #0ff;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

/* ----------------------------------------
   Scroll Margin for Fixed Header
   ---------------------------------------- */
section[id] {
  scroll-margin-top: 80px;
}


/* ========================================
   TRON LEGACY THEME OVERRIDES
   ======================================== */
:root {
  --neon-cyan: #0ef;
  --neon-cyan-dim: rgba(0, 238, 255, 0.3);
  --neon-orange: #ffa500;
  --bg-dark: #050505;
  --glass-bg: rgba(10, 20, 30, 0.75);
}

body {
  background: var(--bg-dark) !important;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000; 
}
::-webkit-scrollbar-thumb {
  background: #004444; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan); 
}

/* Typography */
h1, h2, h3, h4, .font-orbitron {
  font-family: 'Orbitron', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Buttons with chamfered corners */
.btn-legacy, .btn-legacy-secondary {
  position: relative;
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 0.75rem 2rem;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  clip-path: polygon(
    10px 0, 100% 0, 
    100% calc(100% - 10px), calc(100% - 10px) 100%, 
    0 100%, 0 10px
  );
  transition: all 0.3s ease;
  overflow: hidden;
  display: inline-block;
  text-align: center;
}

.btn-legacy::before, .btn-legacy-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-legacy:hover, .btn-legacy-secondary:hover {
  background: rgba(0, 238, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 238, 255, 0.6), inset 0 0 10px rgba(0, 238, 255, 0.3);
  text-shadow: 0 0 8px var(--neon-cyan);
}

.btn-legacy:hover::before, .btn-legacy-secondary:hover::before {
  left: 100%;
}

.btn-legacy-secondary {
  border-color: rgba(0, 238, 255, 0.5);
  color: rgba(0, 238, 255, 0.8);
}

.btn-legacy-secondary:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* Glass Panels */
.legacy-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 238, 255, 0.15);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.legacy-card:hover {
  border-color: rgba(0, 238, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 238, 255, 0.15);
  transform: translateY(-5px);
}

/* Tech borders for cards */
.tech-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
  box-shadow: 2px 2px 10px var(--neon-cyan);
}

.tech-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
  box-shadow: -2px -2px 10px var(--neon-cyan);
}

/* Neon Text */
.text-glow {
  text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
}

.text-glow-orange {
  color: var(--neon-orange) !important;
  text-shadow: 0 0 5px var(--neon-orange), 0 0 15px rgba(255, 165, 0, 0.6);
}

/* Icons */
.icon-legacy {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 238, 255, 0.6));
  transition: transform 0.3s;
}
.group:hover .icon-legacy {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px var(--neon-cyan));
}

/* Form Inputs */
.input-legacy {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 238, 255, 0.3);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
}
.input-legacy:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
  background: rgba(0, 20, 40, 0.8);
}

/* Section Divider - Laser Beam */
.divider-laser {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 15px var(--neon-cyan);
  opacity: 0.7;
  margin: 4rem 0;
  position: relative;
}
.divider-laser::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 1px;
  background: #fff;
  opacity: 0.5;
}

/* Header */
.header-legacy {
  background: rgba(5, 5, 5, 0.85);
  border-bottom: 1px solid rgba(0, 238, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes scan {
  0% { top: -100%; }
  100% { top: 100%; }
}
.scan-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 238, 255, 0.03), transparent);
  z-index: 9999;
  pointer-events: none;
  animation: scan 8s linear infinite;
}

.hero-title-legacy {
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .hero-title-legacy {
    font-size: 3rem;
  }
}

/* Floating Data Particles (Visual only) */
.data-particle {
  position: absolute;
  background: var(--neon-cyan);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

/* Content Body Styles (for Privacy/Terms) */
.content-body h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-cyan);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.content-body p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.content-body ul {
  list-style-type: none;
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.content-body li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}
.content-body li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
}
