/* 
 * Main CSS for blackboxai.love
 * Black/Purple theme with unique layout
 */

/* Custom properties */
:root {
  --primary: #6A00FF; /* Deep Purple */
  --secondary: #0088FF; /* Bright Blue */
  --accent: #A200FF; /* Bright Purple */
  --light-purple: #9D4EDD; /* Light Purple */
  --dark: #000000; /* Black */
  --darker: #111111; /* Off Black */
  --light: #EEEEEE; /* Light Gray */
  --white: #FFFFFF;
  --gray: #333333;
  --light-gray: #666666;
  --gradient: linear-gradient(135deg, var(--accent), var(--secondary));
  --dark-gradient: linear-gradient(135deg, var(--dark), #2D0066);
  --shadow: 0 5px 20px rgba(106, 0, 255, 0.3);
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px base for easier rem calculation */
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--light);
  background-color: var(--dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--white);
}

h1 {
  font-size: 5.6rem;
}

h2 {
  font-size: 4.2rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 8rem;
  height: 0.4rem;
  background: var(--gradient);
  border-radius: 0.2rem;
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 2.8rem;
}

p {
  margin-bottom: 2rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.highlight {
  color: var(--accent);
}

/* Layout */
.container {
  width: 90%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 10rem 0;
  position: relative;
}

.section-alt {
  background: var(--darker);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 4rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.5rem 3.5rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1.6rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(106, 0, 255, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
}

.btn-cta {
  background: var(--gradient);
  color: var(--white);
  font-size: 1.8rem;
  padding: 1.8rem 4.5rem;
  box-shadow: 0 10px 20px rgba(106, 0, 255, 0.4);
  border-radius: 5px;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(106, 0, 255, 0.6);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  transition: var(--transition);
  padding: 2rem 0;
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 1.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
}

.logo-icon {
  height: 4.5rem;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--light);
  font-weight: 500;
  font-size: 1.6rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 3.5rem;
  height: 3rem;
  position: relative;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-toggle span:nth-child(1) {
  top: 0;
}

.mobile-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-toggle span:nth-child(3) {
  bottom: 0;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 13px;
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 14px;
}

@media (max-width: 991px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    width: 80%;
    max-width: 40rem;
    height: 100vh;
    padding: 10rem 2rem 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 2rem;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }
  
  .no-scroll {
    overflow: hidden;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--dark-gradient);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(106, 0, 255, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(0, 136, 255, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 10% 80%, rgba(106, 0, 255, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(0, 136, 255, 0.15) 0%, transparent 30%);
  z-index: 1;
}

/* Circuit board pattern overlay */
.circuit-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 2;
  overflow: hidden;
}

.circuit-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(106, 0, 255, 0.3) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(106, 0, 255, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  padding: 0 2rem;
  text-align: center;
}

.hero-content {
  max-width: 80rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 2.5rem;
  font-weight: 800;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: var(--light);
  font-size: 2rem;
  margin-bottom: 4rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: 5rem;
  position: relative;
  width: 100%;
  max-width: 60rem;
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Features Section */
.features {
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: -10rem;
  right: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(106, 0, 255, 0.2) 0%, transparent 70%);
  z-index: 0;
}

.features::after {
  content: '';
  position: absolute;
  bottom: -10rem;
  left: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(0, 136, 255, 0.2) 0%, transparent 70%);
  z-index: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--darker);
  border-radius: 8px;
  padding: 4rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  text-align: center;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(106, 0, 255, 0.2);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(106, 0, 255, 0.1), rgba(0, 136, 255, 0.1));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  height: 8rem;
  margin-bottom: 2.5rem;
}

.feature-card h3 {
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 2.2rem;
}

.feature-card p {
  color: var(--light-gray);
  font-size: 1.6rem;
  margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
  background: var(--darker);
  position: relative;
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 8rem;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.step-content {
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  background: var(--gradient);
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 2rem;
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid rgba(106, 0, 255, 0.5);
}

.step-content h3 {
  margin-bottom: 1.5rem;
  color: var(--white);
}

@media (min-width: 992px) {
  .step {
    grid-template-columns: 1fr 1fr;
  }
  
  .step:nth-child(even) {
    direction: rtl;
  }
  
  .step:nth-child(even) .step-content {
    direction: ltr;
  }
  
  .step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Showcase Gallery */
.showcase {
  position: relative;
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 576px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  aspect-ratio: 3/4;
  cursor: pointer;
}

.gallery-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-svg {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  transform: translateY(100%);
  transition: var(--transition);
  opacity: 0;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.gallery-overlay p {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: var(--light-gray);
}

/* Testimonials */
.testimonials {
  background: var(--darker);
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  background: var(--dark);
  border-radius: 8px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(106, 0, 255, 0.1);
}

.testimonial-content {
  position: relative;
  padding: 2rem 0;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-content::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 8rem;
  position: absolute;
  top: -3rem;
  left: -1rem;
  color: rgba(106, 0, 255, 0.2);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.5rem;
}

.testimonial-name {
  margin-bottom: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.testimonial-title {
  font-size: 1.4rem;
  color: var(--light-gray);
  margin-top: 0.5rem;
}

.testimonial-rating {
  color: #FFCB00;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* FAQ */
.faq {
  position: relative;
  overflow: hidden;
}

.faq-container {
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(106, 0, 255, 0.2);
  background: var(--darker);
}

.faq-question {
  padding: 2rem 3rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background: var(--dark);
}

.faq-question:hover {
  background: rgba(106, 0, 255, 0.1);
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.8rem;
  padding-right: 2rem;
}

.faq-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  background: var(--darker);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 0 3rem 2rem;
  max-height: 50rem;
}

/* CTA Section */
.cta {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
}

.cta h2 {
  color: var(--white);
}

.cta h2::after {
  background: var(--white);
  left: 50%;
  transform: translateX(-50%);
}

.cta p {
  color: var(--white);
  max-width: 60rem;
  margin: 0 auto 3rem;
  font-size: 2rem;
  opacity: 0.9;
}

.cta .btn-cta {
  background: var(--white);
  color: var(--accent);
}

.cta .btn-cta:hover {
  color: var(--dark);
}

/* Footer */
.footer {
  background: var(--dark);
  padding: 6rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
}

.footer-logo svg {
  width: 4rem;
  height: 4rem;
}

.footer h3 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 5rem;
  height: 0.3rem;
  background: var(--gradient);
  border-radius: 0.15rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav a {
  color: var(--light-gray);
  transition: var(--transition);
  font-size: 1.6rem;
}

.footer-nav a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 2rem;
  color: var(--light-gray);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 1.4rem;
  color: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-links a {
  color: var(--light-gray);
  font-size: 1.4rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

/* Glow effect */
.glow {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(106, 0, 255, 0.4) 0%, transparent 60%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glow:hover::after {
  opacity: 1;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 5rem;
}

.mt-5 {
  margin-top: 5rem;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}
