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

html, body {
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1A2A4B 0%, #2A4B7C 100%);
  color: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 100px);
  margin-top: 100px;
  transition: margin-top 0.3s ease;
}

main {
  flex-grow: 1;
  display: flex; /* Ensure main uses flexbox to manage its children */
  flex-direction: column;
}

/* Font Class for Exo 2 */
.exo-2-bold {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo img {
  height: 60px;
}

/* Hamburger Menu Styling */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #4A90E2;
}

/* Hero Section (Home Page) */
.hero {
  flex-grow: 1; /* Allow .hero to grow to fill available space in main */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px; /* Adjusted padding to reduce space at the top */
  position: relative;
  min-height: 500px; /* Ensure a minimum height for smaller screens */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero h1, .hero p, .hero a {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(45deg, #00ffcc, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.3em;
  max-width: 600px;
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease-in;
}

.hero a {
  padding: 15px 30px;
  background: #4A90E2;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 2s ease-in;
}

.hero a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #4A90E2;
}

/* General Section Styling */
section {
  padding: 100px 50px;
  text-align: center;
  background: linear-gradient(135deg, #2A4B7C 0%, #3A6B9C 100%);
}

section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: # voltage: 1s ease-in;
}

section p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeIn 1.5s ease-in;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  animation: fadeIn 2s ease-in;
}

.service-card h3 {
  font-size: 1.5em;
  color: #4A90E2;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1em;
}

/* Contact Form */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form input, form textarea {
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  font-family: 'Roboto', sans-serif;
  outline: none;
  transition: background 0.3s;
}

form input::placeholder,
form textarea::placeholder {
  font-family: 'Roboto', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

form input::-webkit-input-placeholder,
form textarea::-webkit-input-placeholder {
  font-family: 'Roboto', sans-serif;
  color: rgba(255, 255, 255, 0.7);
}

form input::-moz-placeholder,
form textarea::-moz-placeholder {
  font-family: 'Roboto', sans-serif;
  color: rgba(255, 255, 255, 0.7);
}

form input:-ms-input-placeholder,
form textarea:-ms-input-placeholder {
  font-family: 'Roboto', sans-serif;
  color: rgba(255, 255, 255, 0.7);
}

form input:focus, form textarea:focus {
  background: rgba(255, 255, 255, 0.2);
}

form textarea {
  resize: vertical;
  min-height: 150px;
}

form button {
  padding: 15px;
  background: #4A90E2;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1.1em;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

form button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #4A90E2;
}

form .message {
  font-size: 1.1em;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
  background: #1A2A4B;
  color: #ffffff;
  font-size: 0.9em;
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
      padding: 20px;
      flex-direction: row;
      justify-content: space-between;
  }

  .hamburger {
      display: block;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100px;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.8);
      padding: 20px 0;
      text-align: center;
      z-index: 999;
  }

  .nav-links.active {
      display: flex;
  }

  .nav-links li {
      margin: 10px 0;
  }

  .hero h1 {
      font-size: 2.5em;
  }

  .hero p {
      font-size: 1.1em;
  }

  section {
      padding: 50px 20px;
  }

  section h2 {
      font-size: 2em;
  }

  .hero {
      padding: 20px 20px; /* Slightly less padding on mobile for better fit */
      min-height: 400px; /* Adjust for smaller screens */
  }
}