* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f7f9fb;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
  animation: fadeInDown 1s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #007bff;
  animation: fadeIn 1s ease;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: max-content;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  animation: fadeIn 1.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav a:hover {
  color: #007bff;
}

.auth-btn {
  margin-left: 20px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #0a9d58;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  animation: fadeIn 1.4s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.auth-btn:hover {
  background: #1e40af;
}

.hero {
  position: relative;
  padding: 160px 24px 120px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
  animation: fadeUp 1s ease forwards;
}

.hero p {
  font-size: 18px;
  max-width: 720px;
  margin: auto;
  animation: fadeUp 1s ease 0.3s forwards;
  opacity: 0;
}

.hero button {
  margin-top: 30px;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #007bff;
  font-weight: 600;
  cursor: pointer;
  animation: fadeUp 1s ease 0.6s forwards;
  opacity: 0;
}

.hero svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
}

.what-we-do {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
  color: #fff;
}

.what-we-do img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
  z-index: 0;
  animation: slowZoom 12s ease-in-out infinite;
}

.what-we-do-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  color: #111;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  animation: float 6s ease-in-out infinite;
}

.card h3 {
  color: #007bff;
  margin-bottom: 12px;
}

.curve-top,
.curve-bottom {
  position: absolute;
  width: 100%;
  left: 0;
}

.curve-top {
  top: 0;
}

.curve-bottom {
  bottom: 0;
}

svg {
  display: block;
  width: 100%;
  height: 80px;
}

.cta {
  position: relative;
  padding: 120px 24px 80px;
  background: #111;
  color: #fff;
  text-align: center;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.cta h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

.cta a {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

footer {
  background: #0b0b0b;
  color: #aaa;
  text-align: center;
  padding: 30px;
  font-size: 14px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .nav {
    padding: 12px 14px;
    align-items: flex-start; /* allow stacking vertically if needed */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-direction: column; /* stack logo + menu under logo */
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .logo {
    font-size: 16px;
    flex: 0 0 auto;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important; /* allow wrapping under logo */
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100%; /* fill under logo */
    min-width: max-content;
    white-space: nowrap;
  }

  .nav-links a,
  .nav-links .auth-btn {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-size: 12px; /* smaller font for mobile */
    padding: 4px 6px; /* smaller padding for fit */
  }

  .hero {
    padding-top: 160px; /* header height */
  }

  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .cta h2 { font-size: 30px; }
}