/*
 * VAAS Lab website stylesheet
 *
 * Defines a modern, responsive layout with a purple colour palette. The
 * design features a fixed navigation bar, a gradient hero section, and
 * clearly structured sections for About, Services and Contact. Buttons and
 * cards include simple hover effects to enhance interactivity.
 */

/* Colour variables */
:root {
  --primary-color: #6a1b9a; /* deep purple */
  --secondary-color: #8e24aa; /* light purple */
  --accent-color: #b39ddb; /* pastel lavender */
  --white: #ffffff;
  --light-bg: #f7f5fa; /* off‑white background */
  --dark-text: #1a1a1a;
  --light-text: #ffffff;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Utility container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 0, 31, 0.8);
  backdrop-filter: blur(10px);
  color: var(--light-text);
  z-index: 999;
}

/* Company logo inside nav */
.logo {
  display: flex;
  align-items: center;
}
.logo-image {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--light-text);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(106, 27, 154, 0.4);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.btn-outline {
  border: 2px solid var(--light-text);
  color: var(--light-text);
  background-color: transparent;
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--light-text);
  color: var(--primary-color);
}

/* Hero section */
.hero {
  height: 90vh;
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
  padding: 0 1rem;
}

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

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* About section */
.about {
  background-color: var(--light-bg);
  color: var(--dark-text);
}

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

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

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-icon {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--light-text);
  /* Use a large font size on the container to scale the icon */
  font-size: 3rem;
  box-shadow: 0 8px 16px rgba(106, 27, 154, 0.2);
}

/* Ensure the icon inside the about circle inherits size and colour correctly */
.about-icon i {
  /* Enlarge the icon within the circle for better visibility */
  font-size: 4rem;
  color: var(--light-text);
}

/* Services section */
.services {
  background-color: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  padding: 4rem 0;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Contact section */
.contact {
  background-color: var(--light-bg);
  color: var(--dark-text);
  padding: 4rem 0;
}

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

.contact-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-info {
  flex: 1 1 250px;
  font-size: 1rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 1 1 300px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.2);
}

.contact-form button {
  width: 100%;
  margin-top: 0.5rem;
}

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

footer p {
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-image {
    order: -1;
  }
  .contact-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}