/* Modern CSS for AI Technology Website */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f1faee;
  --background-color: #f1faee;
  --dark-bg: #1d3557;
  --text-color: #1d3557;
  --light-text: #457b9d;
  --card-bg: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

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

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

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
}

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

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

/* Header */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  z-index: 100;
  top: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-color);
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
}

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  background: url('wave-pattern.svg'), var(--dark-bg);
  background-size: cover;
  color: white;
  margin-top: 80px;
}

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

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-text {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

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

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

.hero-image svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Features */
.features {
  padding: 8rem 0;
  background-color: white;
}

.features-header {
  text-align: center;
  margin-bottom: 5rem;
}

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

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

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.feature-text {
  color: var(--light-text);
}

/* How It Works */
.how-it-works {
  padding: 8rem 0;
  background-color: var(--accent-color);
}

.steps-container {
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  margin-bottom: 5rem;
  position: relative;
}

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

.step-left {
  flex: 0 0 150px;
  display: flex;
  justify-content: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
}

.step-right {
  flex: 1;
}

.step-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.step-description {
  color: var(--light-text);
  font-size: 1.1rem;
}

.steps-line {
  position: absolute;
  top: 60px;
  bottom: -60px;
  left: 75px;
  width: 2px;
  background-color: var(--primary-color);
  opacity: 0.3;
}

.step:last-child .steps-line {
  display: none;
}

/* Showcase */
.showcase {
  padding: 8rem 0;
  background-color: white;
}

.showcase-header {
  text-align: center;
  margin-bottom: 5rem;
}

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

.showcase-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  aspect-ratio: 1/1;
  position: relative;
}

.showcase-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 53, 87, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

/* CTA */
.cta {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.cta-text {
  margin-bottom: 3rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta .btn {
  background: white;
  color: var(--primary-color);
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
}

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

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

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

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.footer-logo svg {
  width: 35px;
  height: 35px;
}

.footer-about p {
  margin-bottom: 2rem;
  opacity: 0.7;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step-left {
    margin-bottom: 1.5rem;
  }

  .steps-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    flex-direction: column;
    background-color: white;
    width: 100%;
    top: 80px;
    left: 0;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .feature-box {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
