/* Global Styles */
:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --primary-dark: #171943;
    --secondary-dark: #3a3d85;
    --accent-color: #319bd1;
    --text-color: #333;
    --light-text: #777;
    --background-color: #fff;
    --light-background: #f9f9f9;
    --border-color: #eaeaea;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

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

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

p {
    margin-bottom: 1rem;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

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

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

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* Header Styles */
header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    /* background: linear-gradient(to right, var(--primary-dark), var(--secondary-dark)); */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
  }
  
  .logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    margin: 0;
  }
  
  nav ul li {
    margin-left: 2rem;
  }
  
  nav ul li a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
  }
  
  nav ul li a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: 0;
    left: 0;
    transition: var(--transition);
  }
  
  nav ul li a:hover:after,
  nav ul li a.active:after {
    width: 100%;
  }
  
  nav ul li a.active {
    color: white;
    font-weight: 600;
  }
  

/* Header Styles */
/* header {
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

nav ul li a.active {
    color: var(--primary-color);
} */

/* Carousel Styles */
.carousel-section {
    padding: 0;
    background-color: var(--light-background);
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2rem;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
}

/* Info Section Styles */
.info-section {
    padding: 0 0 4rem 0;
}

.info-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 80px;
}

.info-left,
.info-right {
    flex: 1;
    min-width: 300px;
}

.info-left h2,
.info-right h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-right ul {
    list-style-type: none;
}

.info-right ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-right ul li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Page Banner Styles */
.page-banner {
    /* background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); */
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-dark));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Article Section Styles */
.article-section {
    padding: 4rem 0;
}

.article-section article {
    max-width: 800px;
    margin: 0 auto;
}

.article-section h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.conflict-type {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: 8px;
}

.conflict-type h3 {
    color: var(--accent-color);
}

/* Products Section Styles */
.products-section {
    padding: 4rem 0;
}

.product-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--light-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-details {
    flex: 2;
    min-width: 300px;
}

.product-tagline {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.product-specs,
.product-features,
.product-use-cases {
    margin-bottom: 1.5rem;
}

.product-specs h3,
.product-features h3,
.product-use-cases h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

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

.coming-soon {
    text-align: center;
    padding: 3rem;
    background-color: var(--light-background);
    border-radius: 8px;
}

/* About Company Styles */
.about-company {
    padding: 4rem 0;
}

.company-info {
    max-width: 800px;
    margin: 0 auto;
}

.company-info h2 {
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Team Section Styles */
.team-section {
    padding: 4rem 0;
    background-color: var(--light-background);
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.team-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.team-grid::-webkit-scrollbar {
  height: 8px;
}

.team-grid::-webkit-scrollbar-track {
  background: var(--light-background);
  border-radius: 4px;
}

.team-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.team-grid::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.team-member {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: 450px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.member-image {
    text-align: center
}

.member-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    background-size: 100% 100%;
}

.member-info {
    padding: 1.5rem;
}

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

.join-team {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .info-section .container,
    .product-card {
        flex-direction: column;
    }

    .product-image {
        order: -1;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel-control {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .carousel-caption h2 {
        font-size: 1.2rem;
    }
}

/* Robot Track Page Styles */
.track-section {
  padding: 4rem 0;
  background-color: var(--light-background);
}

.track-form-container {
  max-width: 500px;
  margin: 0 auto 3rem auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.track-form h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.track-form p {
  text-align: center;
  color: var(--light-text);
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(78, 84, 200, 0.1);
}

.search-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
}

.btn-loading {
  display: none;
}

.chat-history {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-history h3 {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 2rem;
  margin: 0;
  font-size: 1.3rem;
}

.chat-info {
  padding: 1rem 2rem;
  background-color: var(--light-background);
  border-bottom: 1px solid var(--border-color);
}

.chat-info p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.chat-messages {
  padding: 1rem 2rem 2rem 2rem;
  max-height: 500px;
  overflow-y: auto;
}

.message {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  max-width: 80%;
}

.message.user {
  background-color: var(--primary-color);
  color: white;
  margin-left: auto;
  text-align: right;
}

.message.robot {
  background-color: var(--light-background);
  color: var(--text-color);
  margin-right: auto;
}

.message-time {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.3rem;
}

.message.user .message-time {
  text-align: right;
}

.message.robot .message-time {
  text-align: left;
}

.error-message {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
  color: #c33;
  text-align: center;
}

/* Mobile responsiveness for Robot Track */
@media (max-width: 768px) {
  .track-form-container {
    margin: 0 1rem 2rem 1rem;
    padding: 1.5rem;
  }

  .chat-history {
    margin: 0 1rem;
  }

  .chat-info {
    padding: 1rem;
  }

  .chat-messages {
    padding: 1rem;
  }

  .message {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .track-form-container {
    margin: 0 0.5rem 1.5rem 0.5rem;
    padding: 1rem;
  }

  .chat-history h3 {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
  }

  .message {
    max-width: 95%;
    padding: 0.6rem 0.8rem;
  }
}

