/*
 * TestCloud website main stylesheet
 *
 * This stylesheet defines the layout and look and feel for the
 * TestCloud demonstration site. It draws inspiration from the
 * visual language of major cloud providers, blending bold
 * gradients with clean typography and generous white space.
 */

/* Global reset and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0078d4;
}

/* Navigation bar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0078d4;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav ul li a {
  font-size: 1rem;
  padding: 8px 0;
}

nav ul li a:hover,
nav ul li a.active {
  border-bottom: 2px solid #ff6a00;
  color: #ff6a00;
}

/* Hero section */
.hero {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0078d4 0%, #00a0e9 50%, #1e64d3 100%);
  color: #ffffff;
  text-align: center;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background-color: #ff6a00;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #e45a00;
}

/* Products section */
.products {
  padding: 60px 20px;
  background-color: #f8f9fb;
}

.products h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  object-fit: contain;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: #0078d4;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Simple icon placeholder used in product cards */
.icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e5f0fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #0078d4;
  margin: 0 auto 20px;
}

/* Footer */
footer {
  background-color: #0f2747;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: #bbb;
}

/* Form pages */
.form-container {
  width: 100%;
  max-width: 400px;
  margin: 80px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.75rem;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group button {
  width: 100%;
  padding: 12px;
  background-color: #0078d4;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-group button:hover {
  background-color: #005fa3;
}