* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8f9fa;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 0.5% 1% rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: linear-gradient(to bottom,
    #ffffff 0vw,
    #ffffff 4.8vw,
    rgba(255,255,255,0) 5.2vw);
}

.navbar {
  width: 100%;
  padding: 1% 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.5vw;
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
}

.logo:hover {
  color: #005fa3;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: space-between;
  width: 85%;
}

.nav-links li {
  flex-shrink: 1;
  flex-grow: 1;
  text-align: center;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: clamp(0.8vw, 1.2vw, 1.5vw);
  font-weight: 500;
  padding: 0.5vw 0.5vw;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #0077cc;
}

@font-face {
  font-family: 'LostAndForlorn';
  src: url('fonts/LostAndForlorn.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: 0.5vw;
  background-color: #fff;
  border: 0.1vw solid #ddd;
  flex-direction: column;
  min-width: max-content;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
}


.dropdown-menu li {
  padding: 1vw;
}

.dropdown-menu li a {
  font-size: 1vw;
  color: #333;
}

.hero {
  position: relative;
  flex-grow: 1;
  width: 100%;
  padding: 5% 0;
  background: linear-gradient(135deg, #e0f7fa, #fce4ec);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.5vw;
  background: linear-gradient(to top, #f8f9fa 0%, rgba(255,255,255,0) 100%);
  pointer-events: none; 
}


.hero-content {
  width: 80%;
  font-family: 'LostAndForlorn', sans-serif;
}

.hero-content h1 {
  font-size: 4vw;
  margin-bottom: 2%;
  color: #0077cc;
  font-family: 'LostAndForlorn', sans-serif;
}

.hero-content p {
  font-size: 1.5vw;
  color: #555;
}

footer {
  width: 100%;
  background-color: #fff;
  text-align: center;
  font-size: 1vw;
  border-top: 0.05vw solid #ddd;
}

.main-container {
  width: 70%;
  margin: 0 auto;
  box-sizing: border-box;
}

.component-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3% 0;
  gap: 3%;
}
 
.component-block.left .component-img {
  order: 1;
}

.component-block.left .component-text {
  order: 2;
  text-align: left;
}

.component-block.right .component-img {
  order: 2;
}

.component-block.right .component-text {
  order: 1;
  text-align: right;
}

.component-img {
  flex: 1;
  max-width: 30%;
}

.component-img img {
  width: 100%;
  border-radius: 0.5vw;
  box-shadow: 0 0.3vw 0.6vw rgba(0,0,0,0.15);
}

.component-text {
  flex: 1.5;
  font-size: 1.1vw;
  line-height: 1.6;
  color: #333;
}

.component-text h2 {
  font-size: 2vw;
  color: #0077cc;
  margin-bottom: 1%;
}

.center-text-block {
  text-align: center;
  margin: 4% auto;
  max-width: 70%;
  font-size: 1.1vw;
  line-height: 1.6;
}
.center-text-block h3 {
  font-size: 1.6vw;
  color: #0077cc;
  margin-bottom: 0.5%;
}
.center-text-block p {
  margin-bottom: 2%;
  color: #444;
}

.motor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1vw;
}

.motor-table th,
.motor-table td {
  border: 1px solid #ccc;
  padding: 0.5vw;
}

.motor-table thead tr {
  background: #e0f7fa;
}
