/* Reset and global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #2F2F86;
  line-height: 1.6;
  background-color: #ffffff;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo {
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #2F2F86;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #6C63FF;
}

/* Active nav link */
.nav-link.active {
  color: #6C63FF;
  border-bottom: 2px solid #6C63FF;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px; /* offset for fixed header */
}

.hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.hero-buttons .btn {
  margin: 0 0.5rem;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.primary {
  background: #6C63FF;
  color: #ffffff;
}

.btn.primary:hover {
  background: #554fbb;
}

.btn.secondary {
  background: #f0f0ff;
  color: #6C63FF;
}

.btn.secondary:hover {
  background: #e2e0ff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.about-section {
  background-color: #F7F7FB;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1 1 350px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2F2F86;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-images {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Products Section */
.products-section {
  background-color: #ffffff;
}

.products-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: #2F2F86;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #f7f7fb;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #6C63FF;
  text-align: center;
}

.product-card .product-desc {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.product-card .btn {
  align-self: center;
}

/* Contact Section */
.contact-section {
  background-color: #F0F0FA;
}

.contact-container {
  max-width: 600px;
  text-align: center;
}

.contact-container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2F2F86;
}

.contact-container p {
  margin-bottom: 2rem;
}

.contact-form .form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  margin-top: 1rem;
  width: 100%;
}

/* Footer */
.footer {
  background-color: #2F2F86;
  color: #ffffff;
  padding: 1rem 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-container p {
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #c3c1ff;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .about-container {
    flex-direction: column;
  }
  .about-images {
    flex-direction: row;
    justify-content: center;
  }
  .about-img {
    max-width: 48%;
  }
}