/* ========================================
   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;
}
