:root {
  --primary-color: #0052cc;
  --secondary-color: #007fff;
  --accent-color: #e0f7fa;
  --text-color: #333;
  --bg-color: #f9f9f9;
  --white: #ffffff;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1000;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Active hamburger animation */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--accent-color), var(--white));
  color: var(--text-color);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background-color: var(--white);
}

h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 600;
}

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

/* Services section: 2x2 grid */
#services .grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto 0 auto; /* Right align */
  justify-items: end;
}

/* Services content layout */
.services-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.services-image {
  flex: 1;
  min-width: 300px;
}

.services-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.services-text {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}

.services-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.services-text ol {
  padding-left: 1.5rem;
}

.services-text li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.services-grid {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Products section: 2x3 grid */
#products .grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 0 0 auto; /* Left align */
  justify-items: start;
}

/* Products content layout */
.products-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.products-grid {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.products-image {
  flex: 1;
  min-width: 300px;
}

.products-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Partners content layout */
.partners-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partners-image {
  flex: 1;
  min-width: 300px;
}

.partners-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.partners-grid {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Registration content layout */
.registration-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.registration-grid {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.registration-image {
  flex: 1;
  min-width: 300px;
}

.registration-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Contact content layout */
.contact-content {
  display: flex;
  align-items: start;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-image {
  flex: 1;
  min-width: 300px;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card i {
  color: var(--primary-color);
  font-size: 2rem;
}

.card h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

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

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

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 0.5px;
  color: var(--text-color);
  text-align: justify;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    z-index: 999;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 0.75rem 1rem;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
  }

  nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Override specific grids for mobile */
  #services .grid,
  #products .grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
    justify-items: center;
  }

  .card {
    padding: 1.5rem;
    gap: 0.8rem;
  }

  .card img {
    width: 60px;
    height: 60px;
  }

  .card i {
    font-size: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text p {
    font-size: 1rem;
    text-align: left;
    line-height: 1.6;
  }

  .about-text p::first-letter {
    font-size: 2rem;
    margin-right: 5px;
    margin-top: 2px;
  }

  .services-content {
    flex-direction: column;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .products-content {
    flex-direction: column;
    gap: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .partners-content {
    flex-direction: column;
    gap: 2rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .registration-content {
    flex-direction: column;
    gap: 2rem;
  }

  .registration-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}
