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

/* Alert box */
#alert-box {
  display: none;
  padding: 10px;
  margin: 0;
  border-radius: 5px;
  background-color: #d4edda;
  color: #155724;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Company name */
.company-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 0.5rem;
  transition: font-size 0.5s ease;
}
.company-name .rapt { color: #006400; }
.company-name .tech { color: #ff6600; }

/* Animations */
@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

html {
  scroll-padding-top: 40px; /* adjust based on header height */
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: background 0.5s ease, color 0.5s ease, padding 0.5s ease;
  z-index: 1000;
  animation: slideDown 0.8s ease forwards;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo-container {
  display: flex;
  align-items: center;
}
.logo-img,
.company-name {
  opacity: 0;
  animation: fadeSlideIn 0.8s ease forwards;
}
.logo-img { animation-delay: 0.4s; height: 48px; transition: height 0.5s ease; }
.company-name { animation-delay: 0.6s; }

/* Header shrink on scroll */
.header.shrink { padding: 0.5rem 0; }
.header.shrink .company-name { font-size: 1.2rem; }
.header.shrink .logo-img { height: 32px; }

/* Nav links */
.header nav a {
  color: inherit;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.5s ease;
}
.header nav a:hover { color: #0061ff; }

.nav-links {
  display: flex;
  gap: 1rem;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Solutions grid */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.solution .btn {
  display: inline-block;
  margin-top: 10px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem 1rem 3rem;
}
.hero h2 { font-size: 2.5rem; }
.hero p { font-size: 1.1rem; margin: 1rem 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}
.btn-light { background: #fff; color: #0061ff; }
.btn-dark { background: #0061ff; color: #fff; }
.btn:hover { background: #eaeaea; }

/* Sections */
section { padding: 3rem 0; }
section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.about p {
  text-align: center;
  max-width: 700px;
  margin: auto;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service {
  background: #f4f4f4;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

/* Contact */
.contact p {
  text-align: center;
  font-size: 1.1rem;
}
.contact a { color: #0061ff; }
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
}
input, textarea {
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  padding: 0.7rem;
  border: none;
  background: #0061ff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
button:hover { background: #0047b3; }

/* Footer */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .header { padding: 0.5rem 0; }
  .logo-img { height: 32px; }
  .company-name { font-size: 1rem; }
  .hero { padding-top: 6rem; }
  
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    color: #333 !important;
    padding: 3px 0;
    text-decoration: none;
  }
  .nav-links a:hover { color: #007bff !important; }
  .menu-toggle { display: block; }
}

/* Very small screens 
@media (max-width: 480px) {
  .company-name { display: none; }
}*/
@media (max-width: 480px) {
  .company-name {
    font-size: 0.9rem; 
  }
}
