/* 
 * River Valley Inc. Website Styles
 * A modern, minimalist, tech-forward design for an AI company
 */

/* ===== CSS Reset and Base Styles ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette */
  --navy-blue: #0a192f;
  --slate-gray: #8892b0;
  --light-slate: #ccd6f6;
  --lightest-slate: #e6f1ff;
  --neon-cyan: #64ffda;
  --neon-magenta: #ff64da;
  --dark-bg: #020c1b;
  --medium-bg: #112240;
  --light-bg: #233554;
  
  /* Typography */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Roboto', monospace;
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy-blue);
  color: var(--light-slate);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--lightest-slate);
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--neon-magenta);
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--slate-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Header & Navigation ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--light-slate);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--lightest-slate);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--neon-cyan);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--dark-bg);
}

.hero-content {
  max-width: 700px;
  z-index: 2;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--lightest-slate), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--slate-gray);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  color: var(--navy-blue);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--navy-blue);
  transition: var(--transition);
  z-index: -1;
}

.cta-button:hover {
  color: var(--neon-cyan);
}

.cta-button:hover::before {
  width: 100%;
}

.hero-animation {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(100, 255, 218, 0.1) 0%, rgba(10, 25, 47, 0) 70%);
}

/* Particle animation will be added with JavaScript */

/* ===== Solutions Section ===== */
#solutions {
  background-color: var(--navy-blue);
  position: relative;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.solution-card {
  background-color: var(--medium-bg);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-magenta));
  transition: var(--transition);
}

.solution-card:hover {
  transform: translateY(-10px);
}

.solution-card:hover::before {
  height: 100%;
}

.solution-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--neon-cyan);
}

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

.solution-card p {
  color: var(--slate-gray);
  margin-bottom: 1.5rem;
}

.learn-more {
  color: var(--neon-cyan);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  margin-top: auto;
}

.learn-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--neon-cyan);
  transition: var(--transition);
}

.learn-more:hover::after {
  width: 100%;
}

.tooltip {
  position: relative;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background-color: var(--light-bg);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 10;
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== Why Us Section ===== */
#why-us {
  background-color: var(--dark-bg);
  position: relative;
}

.features-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

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

.workflow-animation {
  height: 300px;
  background-color: var(--medium-bg);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}

/* Animated flowchart will be added with JavaScript */

/* ===== Use Cases Section ===== */
#use-cases {
  background-color: var(--navy-blue);
  position: relative;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-item {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.case-study {
  background-color: var(--medium-bg);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.industry-icon {
  font-size: 2.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
}

.case-study h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.result {
  font-size: 1.2rem;
  color: var(--neon-magenta);
  font-weight: 500;
  margin-bottom: 2rem;
}

.testimonial {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 4rem;
  color: var(--neon-cyan);
  opacity: 0.3;
}

.client-info {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(204, 214, 246, 0.1);
}

.client-name {
  font-weight: 600;
  color: var(--lightest-slate);
  margin-bottom: 0.25rem;
}

.client-position {
  color: var(--slate-gray);
  font-size: 0.9rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.prev-btn, .next-btn {
  background: transparent;
  border: none;
  color: var(--light-slate);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
  color: var(--neon-cyan);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  margin: 0 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-bg);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--neon-cyan);
}

/* ===== Industries Section ===== */
#industries {
  background-color: var(--dark-bg);
  position: relative;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.industry-card {
  background-color: var(--medium-bg);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.industry-card .industry-icon {
  font-size: 2.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.industry-card:hover .industry-icon {
  color: var(--neon-magenta);
}

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

/* ===== About Us Section ===== */
#about {
  background-color: var(--navy-blue);
  position: relative;
}

.mission-statement {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.mission-statement h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--neon-cyan);
}

.mission-statement p {
  font-size: 1.2rem;
}

.team-container {
  margin-bottom: 4rem;
}

.team-container h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
}

.team-member {
  background-color: var(--medium-bg);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.member-photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--neon-cyan);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.member-title {
  color: var(--neon-cyan);
  font-weight: 500;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--slate-gray);
  font-size: 0.95rem;
}

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

.partners-container h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.partner-logo {
  background-color: var(--medium-bg);
  color: var(--light-slate);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.2rem;
  transition: var(--transition);
}

.partner-logo:hover {
  background-color: var(--light-bg);
  transform: translateY(-5px);
}

/* ===== Contact Section ===== */
#contact {
  background-color: var(--dark-bg);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-form {
  background-color: var(--medium-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--lightest-slate);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--light-bg);
  border: 1px solid var(--slate-gray);
  border-radius: 4px;
  color: var(--lightest-slate);
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.submit-btn {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  color: var(--navy-blue);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  margin-right: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--medium-bg);
  border-radius: 50%;
  color: var(--light-slate);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--neon-cyan);
  color: var(--navy-blue);
  transform: translateY(-5px);
}

.map-container {
  height: 300px;
  background-color: var(--medium-bg);
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-gray);
  font-size: 1.2rem;
}

/* ===== Footer ===== */
#footer {
  background-color: var(--dark-bg);
  padding: 4rem 0 2rem;
  position: relative;
}

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

.footer-logo h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-newsletter h4,
.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--lightest-slate);
}

.footer-newsletter form {
  display: flex;
  margin-top: 1rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.75rem;
  background-color: var(--medium-bg);
  border: 1px solid var(--slate-gray);
  border-radius: 4px 0 0 4px;
  color: var(--lightest-slate);
}

.footer-newsletter button {
  background-color: var(--neon-cyan);
  color: var(--navy-blue);
  font-weight: 600;
  padding: 0 1.5rem;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background-color: var(--neon-magenta);
}

.footer-links ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.footer-links a {
  color: var(--slate-gray);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(204, 214, 246, 0.1);
  color: var(--slate-gray);
  font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 1024px) {
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
  
  .feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .feature-icon {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--medium-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: flex;
    z-index: 1000;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .team-members {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
  }
  
  .case-study {
    padding: 1.5rem;
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  .footer-newsletter button {
    border-radius: 4px;
    padding: 0.75rem;
  }
}
