/* Landing Page Styles for Sheldon AI */

/* Base Styles & Reset */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --accent-color: #fd79a8;
  --text-color: #f5f6fa;
  --light-text: #f5f6fa;
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: #1e1e1e;
  --medium-bg: #2d2d2d;
  --gradient-start: #6c5ce7;
  --gradient-end: #a29bfe;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --card-radius: 12px;
  --container-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--dark-bg);
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

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

/* Particles Background */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(135deg, #36393F, #202225);
  opacity: 0.9;
  overflow: hidden;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 12px;
}

.logo span {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.cta-small a {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 500;
}

.cta-small a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Spatial Canvas Simulation Styles */
.spatial-canvas-simulation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.prompt-node {
  position: absolute;
  display: flex;
  align-items: flex-start;
  background-color: rgba(47, 49, 54, 0.8);
  border-radius: 12px;
  padding: 15px;
  width: 250px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.user-node {
  top: 25%;
  left: 15%;
}

.ai-node {
  bottom: 25%;
  right: 15%;
}

.node-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  margin-right: 10px;
  flex-shrink: 0;
}

.ai-avatar {
  background-color: var(--accent-color);
}

.prompt-text {
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.4;
}

.canvas-connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  top: 50%;
  left: 25%;
  width: 0;
  transition: width 1s ease;
  opacity: 0.6;
}

.particle-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
}

.burst-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0.8;
  animation: burstOut 1s ease-out forwards;
}

@keyframes burstOut {
  0% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

@keyframes typingCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--light-text); }
}

.typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--light-text);
  margin-left: 2px;
  animation: typingCursor 0.8s infinite;
  vertical-align: middle;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  z-index: 1;
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button.primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.cta-button.secondary:hover {
  background-color: rgba(108, 92, 231, 0.1);
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.main-image {
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.floating-element {
  position: absolute;
  display: flex;
  align-items: center;
  animation: float 3s infinite ease-in-out;
}

.node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(253, 121, 168, 0.5);
}

.node-label {
  background-color: var(--card-bg);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  margin-left: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  color: var(--light-text);
}

.connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, var(--accent-color), transparent);
  animation: pulse 2s infinite;
}

.node-1 {
  top: 20%;
  left: -15%;
  animation-delay: 0s;
}

.node-2 {
  top: 50%;
  right: -15%;
  animation-delay: 0.5s;
}

.node-3 {
  bottom: 15%;
  left: 10%;
  animation-delay: 1s;
}

.connection-1 {
  top: 25%;
  left: 0;
  width: 100px;
  transform: rotate(30deg);
  animation-delay: 0.2s;
}

.connection-2 {
  bottom: 30%;
  right: 0;
  width: 120px;
  transform: rotate(-45deg);
  animation-delay: 0.8s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Features Section */
.features {
  padding: 8rem 0;
  background-color: var(--darker-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* About Section */
.about {
  padding: 8rem 0;
  background: linear-gradient(135deg, #36393F, #202225);
  color: var(--light-text);
}

.about .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about h2 {
  text-align: left;
  color: white;
}

.about p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.about .cta-button.secondary {
  border-color: white;
  color: white;
  margin-top: 1rem;
}

.about .cta-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.logo-large {
  max-width: 100%;
  border-radius: var(--card-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  background-color: var(--darker-bg);
}

.cta-section p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.8;
}

.cta-section .cta-button {
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-logo img {
  height: 40px;
  margin-right: 12px;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

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

.footer-contact p a {
  color: var(--secondary-color);
}

.footer-contact p a:hover {
  color: var(--accent-color);
}

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

/* Media Queries */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .about .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about h2 {
    text-align: center;
  }
  
  .about .cta-button {
    margin: 1.5rem auto 0;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .feature-card {
    padding: 2rem;
  }
  
  .about p {
    font-size: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--medium-bg);
  z-index: 1000;
  padding: 2rem;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-menu ul {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu ul li a {
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
}

.mobile-menu .cta-small {
  margin-top: 2rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}