/* 
 * aichatbot.love - Main Stylesheet
 * Blue/Purple futuristic theme with tech-focused layout
 */

:root {
  /* Primary color palette - blue/purple theme */
  --primary: #00C4FF;
  --primary-dark: #0099CC;
  --secondary: #7000FF;
  --secondary-dark: #5800CC;
  --accent: #FF3366;
  --bg-dark: #121218;
  --bg-darker: #0A0A10;
  --bg-light: #1E1E28;
  --text-light: #FFFFFF;
  --text-muted: #A0A0B0;
  --border-color: rgba(0, 196, 255, 0.2);
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Exo 2', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Borders */
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 196, 255, 0.05) 0%, transparent 20%), 
                    radial-gradient(circle at 90% 80%, rgba(112, 0, 255, 0.05) 0%, transparent 20%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 1px;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--spacing-md);
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius-md);
  font-family: var(--font-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0, 196, 255, 0.2);
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--border-radius-md);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 196, 255, 0.3);
}

.btn:hover:before {
  opacity: 1;
}

.btn-large {
  padding: 1.2rem 2.8rem;
  font-size: 1.1rem;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.blur-bg {
  backdrop-filter: blur(10px);
  background-color: rgba(30, 30, 40, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

/* Header Styles */
.header {
  background-color: rgba(10, 10, 16, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo img, .logo svg {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-family: var(--font-secondary);
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--text-light);
  font-family: var(--font-secondary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 0.3rem 0;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}

/* Hero Section */
.hero {
  padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/grid-pattern.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: -1;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content {
  padding-right: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 196, 255, 0.2);
  position: relative;
  z-index: 2;
}

.hero-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at center, rgba(112, 0, 255, 0.2) 0%, transparent 70%);
  border-radius: var(--border-radius-lg);
  z-index: 1;
}

/* Features Section */
.features {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 50%, var(--bg-dark) 100%);
  z-index: -1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: var(--spacing-md) auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background-color: rgba(30, 30, 40, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.05) 0%, rgba(112, 0, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 196, 255, 0.1);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.feature-description {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  counter-reset: step-counter;
}

.step {
  text-align: center;
  padding: var(--spacing-md);
  position: relative;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 196, 255, 0.2);
}

.step-content {
  margin-top: 60px;
}

.step-title {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
}

.step-description {
  color: var(--text-muted);
}

/* Gallery Section */
.gallery {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item svg {
  width: 80%;
  height: 80%;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* CTA Section */
.cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.1) 0%, rgba(112, 0, 255, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/circuit-pattern.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.cta-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.footer-logo img, .footer-logo svg {
  height: 40px;
  width: auto;
}

.footer-about p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-icon {
  width: 30px;
  height: 30px;
  margin: var(--spacing-sm) 0;
  display: block;
}

.footer-disclaimer {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  margin-top: var(--spacing-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

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

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

.delay-3 {
  transition-delay: 0.6s;
}

/* Neon glow effect */
.glow-text {
  text-shadow: 0 0 5px rgba(0, 196, 255, 0.7),
               0 0 10px rgba(0, 196, 255, 0.5),
               0 0 20px rgba(0, 196, 255, 0.3);
}

.glow-box {
  box-shadow: 0 0 10px rgba(0, 196, 255, 0.3),
              0 0 20px rgba(0, 196, 255, 0.2),
              0 0 30px rgba(0, 196, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding-right: 0;
    order: 1;
  }
  
  .hero-image-container {
    order: 0;
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 16, 0.95);
    flex-direction: column;
    padding: var(--spacing-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    gap: var(--spacing-sm);
    text-align: center;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .feature-card,
  .step,
  .gallery-item {
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .features-grid,
  .gallery-grid,
  .steps,
  .footer-container {
    grid-template-columns: 1fr;
  }
}
