/* 
   Character AI Love - Main Stylesheet
   A unique purple and blue themed design optimized for SEO and mobile responsiveness
*/

/* CSS Variables */
:root {
  --primary: #673AB7;
  --secondary: #03A9F4;
  --dark: #1A1A2E;
  --light: #FFFFFF;
  --gray: #8D8D8D;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  background-color: #FAFAFA;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Circuit Background */
.circuit-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10,50 L90,50 M50,10 L50,90' stroke='%23673AB7' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='3' fill='%2303A9F4'/%3E%3Cpath d='M10,10 L30,30 M70,70 L90,90 M10,90 L30,70 M70,30 L90,10' stroke='%2303A9F4' stroke-width='1'/%3E%3C/svg%3E");
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-30deg);
  transition: all 0.5s ease;
  z-index: -1;
}

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

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

.btn.primary:hover {
  box-shadow: 0 7px 20px rgba(103, 58, 183, 0.4);
  transform: translateY(-3px);
  color: white;
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 15px;
}

.btn.secondary:hover {
  background: rgba(103, 58, 183, 0.1);
  transform: translateY(-3px);
}

.btn.large {
  padding: 15px 32px;
  font-size: 1rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8rem;
  background: var(--gradient);
  color: white;
  border-radius: 20px;
}

.btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(103, 58, 183, 0.4);
  color: white;
}

.cta-container {
  text-align: center;
  margin-top: 2.5rem;
}

/* Header & Navigation */
header {
  background-color: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

.logo span {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
}

.nav-cta:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(103, 58, 183, 0.4);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 10;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 150%;
  background: var(--gradient);
  opacity: 0.05;
  transform: rotate(-30deg);
  z-index: -1;
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.robot-container {
  position: relative;
}

.robot-svg {
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.robot-head {
  fill: white;
  stroke: var(--primary);
  stroke-width: 2;
}

.robot-eye {
  fill: var(--primary);
  stroke: none;
}

.robot-pupil {
  fill: var(--secondary);
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: white;
  position: relative;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: white;
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(103, 58, 183, 0.15);
  border-color: rgba(103, 58, 183, 0.1);
}

.feature-icon {
  margin: 0 auto 20px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-bg {
  fill: url(#purpleGrad);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--primary);
}

.feature-card p {
  color: var(--gray);
}

/* Characters Section */
.characters {
  padding: 100px 0;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.characters::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -30%;
  width: 70%;
  height: 150%;
  background: var(--gradient);
  opacity: 0.05;
  transform: rotate(30deg);
  z-index: 0;
  border-radius: 50%;
}

.characters h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.character-card {
  perspective: 1000px;
  height: 250px;
}

.character-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  background-color: white;
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.character-card:hover .character-card-inner {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(103, 58, 183, 0.15);
  border-color: rgba(103, 58, 183, 0.1);
}

.character-icon {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--primary);
}

.character-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Showcase Section */
.showcase {
  padding: 100px 0;
  background-color: white;
  position: relative;
}

.showcase h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.showcase-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.showcase-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(103, 58, 183, 0.2);
}

.showcase-content {
  position: relative;
  width: 100%;
  height: 200px;
}

.showcase-svg {
  width: 100%;
  height: 100%;
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.showcase-overlay h3 {
  color: white;
  margin: 0;
  font-size: 1.1rem;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.faq-item {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.faq-item:hover {
  box-shadow: 0 15px 30px rgba(103, 58, 183, 0.15);
  border-color: rgba(103, 58, 183, 0.1);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.faq-item p {
  color: var(--gray);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--gradient);
  color: white;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.2rem;
  opacity: 0.9;
}

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

.cta-section .btn:hover {
  background: white;
  color: var(--secondary);
  box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 70px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo-img {
  width: 50px;
  height: auto;
}

.footer-logo h3 {
  color: white;
  margin-bottom: 5px;
}

.footer-logo p {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-column a {
  color: white;
  opacity: 0.7;
  margin-bottom: 12px;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* SVG Definitions */
svg {
  overflow: visible;
}

/* Added for compatibility */
defs {
  position: absolute;
}

linearGradient#purpleGrad {
  --gradient-start: #673AB7;
  --gradient-end: #03A9F4;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem !important;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  nav ul.active {
    max-height: 300px;
  }
  
  nav ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content p {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .btn.secondary {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .feature-grid,
  .character-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}
