/* InfoY AI Website Styles */
:root {
  --primary-color: #4a8fe7;
  --secondary-color: #2c3e50;
  --accent-color: #5bc0de;
  --light-color: #f5f8fa;
  --dark-color: #1e2a38;
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--dark-color);
  color: white;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
header {
  background-color: rgba(0, 31, 63, 0.9);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

.logo img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-family: var(--font-secondary);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 2rem;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.1rem;
}

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

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 10, 30, 0.9)), url('../images/ai-background.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero h2 {
  font-family: var(--font-secondary);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-highlight {
  color: var(--accent-color);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, background-color 0.3s;
  margin-right: 15px;
}

.cta-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

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

.secondary-button:hover {
  background-color: var(--accent-color);
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--dark-color);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  color: var(--light-color);
  margin-bottom: 15px;
}

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

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

.feature-card {
  background: linear-gradient(145deg, #2c3e50, #1e2a38);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  color: var(--accent-color);
  background-color: rgba(0, 170, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-card h3 {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.feature-card p {
  color: var(--light-color);
  opacity: 0.9;
}

/* How it Works Section */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark-color), #051224);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 60px;
}

.step {
  display: flex;
  gap: 60px;
  align-items: center;
}

.step-content {
  flex: 1;
}

.step-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.step-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}

.step:hover .step-image img {
  transform: scale(1.05);
}

.step-number {
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
  top: -30px;
  left: -20px;
  z-index: 1;
}

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step h3 {
  font-family: var(--font-secondary);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.step p {
  color: var(--light-color);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Applications Section */
.applications {
  padding: 100px 0;
  background-color: var(--dark-color);
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.application-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.application-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 31, 63, 0.9));
}

.application-content {
  position: absolute;
  bottom: 0;
  padding: 30px;
  width: 100%;
  transform: translateY(30px);
  transition: transform 0.3s;
}

.application-card:hover .application-content {
  transform: translateY(0);
}

.application-card h3 {
  color: white;
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.application-card p {
  color: var(--light-color);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  transition-delay: 0.1s;
}

.application-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* Visualization Section */
.visualization {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark-color), #051224);
}

.viz-container {
  margin-top: 60px;
}

.viz-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.viz-tab {
  padding: 15px 30px;
  color: var(--light-color);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.viz-tab.active {
  color: var(--accent-color);
}

.viz-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.viz-tab.active::after {
  transform: scaleX(1);
}

.viz-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.viz-content.active {
  display: block;
}

.viz-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, #0c1e3b, #0a1527);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.viz-title {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  text-align: center;
}

.viz-description {
  color: var(--light-color);
  text-align: center;
  margin-bottom: 30px;
  max-width: 600px;
}

.viz-chart {
  width: 100%;
  max-width: 700px;
  height: 400px;
  margin-bottom: 20px;
  overflow: hidden;
}

/* Bar Chart Styles */
.chart-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.bar-chart {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 20px;
}

.bar {
  width: 40px;
  background: linear-gradient(to top, var(--primary-color), var(--accent-color));
  border-radius: 5px 5px 0 0;
  position: relative;
  transition: height 1s ease;
}

.bar::before {
  content: attr(data-value) + '%';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: 500;
}

.bar-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light-color);
  font-size: 0.85rem;
}

/* Line Chart Styles */
.line-chart {
  width: 100%;
  height: 100%;
  padding: 30px 20px 40px;
  position: relative;
}

.line-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-path {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-path {
  fill: url(#gradient);
  opacity: 0.3;
}

.axis {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.dot {
  fill: white;
  stroke: var(--accent-color);
  stroke-width: 2;
}

.x-labels, .y-labels {
  display: flex;
  justify-content: space-between;
  position: absolute;
  color: var(--light-color);
  font-size: 0.8rem;
}

.x-labels {
  bottom: 0;
  left: 40px;
  right: 20px;
}

.y-labels {
  flex-direction: column-reverse;
  justify-content: space-between;
  top: 30px;
  bottom: 40px;
  left: 0;
}

/* Pie Chart Styles */
.pie-chart {
  width: 300px;
  height: 300px;
  position: relative;
  margin: 0 auto;
}

.pie-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pie-slice {
  transition: all 0.3s ease;
}

.pie-slice:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.pie-labels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pie-label {
  display: flex;
  align-items: center;
  margin: 0 10px 10px;
  font-size: 0.9rem;
  color: var(--light-color);
}

.pie-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  margin-right: 5px;
  display: inline-block;
}

/* Data Grid Styles */
.data-grid {
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
  background-color: rgba(0, 102, 204, 0.2);
  color: var(--accent-color);
  font-weight: 500;
  position: sticky;
  top: 0;
}

.data-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.data-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.status-active {
  background-color: rgba(0, 200, 83, 0.2);
  color: #00c853;
}

.status-inactive {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.data-progress {
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.data-progress-bar {
  height: 100%;
  background-color: var(--accent-color);
}

/* Chat Section */
.chat-section {
  padding: 100px 0;
  background-color: var(--dark-color);
}

.chat-container {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(145deg, #2c3e50, #1e2a38);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

.chat-header {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h3 {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  margin: 0;
}

.chat-header .status {
  display: flex;
  align-items: center;
}

.status-indicator {
  width: 12px;
  height: 12px;
  background-color: #00ff4c;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1.5s infinite;
}

.chat-messages {
  padding: 30px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  display: flex;
  margin-bottom: 15px;
}

.message-content {
  max-width: 70%;
  padding: 15px;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.5;
}

.user-message {
  justify-content: flex-end;
}

.ai-message {
  justify-content: flex-start;
}

.user-message .message-content {
  background-color: var(--primary-color);
  color: white;
  border-top-right-radius: 0;
}

.ai-message .message-content {
  background-color: #1f2b3e;
  color: white;
  border-top-left-radius: 0;
}

.chat-input-container {
  padding: 20px;
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
  flex: 1;
  padding: 15px;
  border-radius: 30px;
  border: none;
  background-color: #1f2b3e;
  color: white;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.chat-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-color);
}

.chat-submit {
  margin-left: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.3s, background-color 0.3s;
}

.chat-submit:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

.typing-indicator {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #1f2b3e;
  color: white;
  border-radius: 10px;
  max-width: 100px;
  margin-left: 20px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  margin: 0 3px;
  animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.5s;
}

.typing-dot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes typingAnimation {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  text-align: center;
}

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

.cta-section h2 {
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.cta-section p {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-info h3 {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-info p {
  color: var(--light-color);
  margin-bottom: 20px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-color);
}

.footer-nav h4 {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
}

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

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav ul li a:hover {
  color: var(--accent-color);
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--light-color);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 3rem;
  }
  
  .step {
    flex-direction: column !important;
    text-align: center;
    gap: 40px;
  }
  
  .step-number {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .viz-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    margin-bottom: 0;
  }
  
  nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--secondary-color);
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  nav .nav-links.active {
    right: 0;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    margin-right: 0;
    margin-bottom: 15px;
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  
  .features-grid, 
  .applications-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-container {
    margin: 0 10px;
  }
  
  .step-image {
    width: 100%;
  }
  
  .viz-tab {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .viz-demo {
    padding: 20px;
  }
  
  .viz-chart {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 60px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-card, 
  .application-card {
    min-height: auto;
  }
  
  .viz-chart {
    height: 250px;
  }
  
  .chat-messages {
    max-height: 300px;
  }
  
  .pie-chart {
    width: 250px;
    height: 250px;
  }
  
  .bar-chart {
    padding: 10px;
  }
  
  .data-grid {
    overflow-x: auto;
  }
  
  .data-table {
    min-width: 500px;
  }
}