/* ===================================
   Performance Test Lab - Stylesheet
   =================================== */

/* Reset and Base Styles
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animations
   ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading Spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.loading-spinner.active {
  display: block;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0a0a0a;
}

/* Typography
   ========== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
}

/* Container
   ========= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons
   ======= */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background-color: #007bff;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Header and Navigation
   ===================== */
.header {
  background-color: #111111;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo img {
  height: 50px;
  width: auto;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__menu a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav__menu a:hover {
  color: #007bff;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* Main Content
   ============ */
main {
  margin-top: 82px; /* Account for fixed header */
}

/* Hero Section
   ============ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
  padding: 4rem 0;
  position: relative;
}

.hero__content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  animation: fadeIn 1s ease-out;
}

.hero__title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #cccccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__subtitle {
  font-size: 1.5rem;
  color: #cccccc;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero__description {
  font-size: 1.125rem;
  color: #cccccc;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* Services Section
   ================ */
.services {
  padding: 4rem 0;
  background-color: #0a0a0a;
}

.services__title {
  text-align: center;
  margin-bottom: 3rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: #111111;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.service-card__title {
  color: #007bff;
  margin-bottom: 1rem;
}

.service-card__description {
  color: #cccccc;
  margin-bottom: 1.5rem;
}

.service-card__benefits h4 {
  margin-bottom: 0.75rem;
}

.service-card__benefits ul {
  list-style: none;
  padding-left: 0;
}

.service-card__benefits li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #cccccc;
}

.service-card__benefits li::before {
  content: "•";
  color: #007bff;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.services__process {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #cccccc;
  font-size: 1.125rem;
}

/* Contact Section
   =============== */
.contact {
  padding: 4rem 0;
  background-color: #0f0f0f;
}

.contact__title {
  text-align: center;
  margin-bottom: 1rem;
}

.contact__intro {
  text-align: center;
  color: #cccccc;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  background-color: #111111;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #333333;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group .required {
  color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: #1a1a1a;
  border: 2px solid #333333;
  border-radius: 4px;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* Contact Info */
.contact__info {
  padding: 2rem;
}

.contact__info-item {
  margin-bottom: 2rem;
}

.contact__info-item h3 {
  color: #007bff;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.contact__info-item p,
.contact__info-item address {
  color: #cccccc;
  font-style: normal;
}

.contact__info-item a {
  color: #ffffff;
}

.contact__info-item a:hover {
  color: #007bff;
}

/* Footer
   ====== */
.footer {
  background-color: #111111;
  padding: 2rem 0;
  text-align: center;
  color: #999999;
  border-top: 1px solid #333333;
}

/* Responsive Design
   ================= */
@media (max-width: 768px) {
  /* Typography */
  h1, .hero__title {
    font-size: 2rem;
  }
  
  h2, .services__title, .contact__title {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero__subtitle {
    font-size: 1.25rem;
  }
  
  .hero__description {
    font-size: 1rem;
  }
  
  /* Navigation */
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #111111;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .nav__menu--active {
    display: flex;
  }
  
  .nav__menu li {
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Hero */
  .hero {
    min-height: 60vh;
  }
  
  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact */
  .contact__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact__info {
    background-color: #111111;
    border-radius: 8px;
    border: 1px solid #333333;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
  }
}

/* Utility Classes
   =============== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Enhanced Animations for Service Cards */
.service-card {
  opacity: 0;
  transform: translateY(30px);
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

.services__title,
.contact__title {
  opacity: 0;
  transform: translateY(20px);
}

.services__title.animate,
.contact__title.animate {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Active Navigation State */
.nav__menu a.active {
  color: #007bff;
  position: relative;
}

.nav__menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #007bff;
}

/* Enhanced Button Hover */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn--primary:hover::before {
  left: 100%;
}

/* Enhanced Service Card Hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #007bff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
  border-color: #007bff;
}

/* Loading Spinner for Form */
.loading-spinner {
  display: inline-block;
  vertical-align: middle;
}

/* Form Success Animation */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
