* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  background-attachment: fixed;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 30%, rgba(30,144,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,123,255,0.1), transparent 40%),
    linear-gradient(180deg, #0b0f14, #0a1a2f);
  color: white;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 144, 255, 0.2);
}

.logo {
  height: 80px;
  filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.5));
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* NAV BUTTONS */
.navbar .btn {
  background: transparent;
  box-shadow: none;
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  color: #ccc;
  position: relative;
  transition: 0.25s;
  text-decoration: none;
}

.navbar .btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #1e90ff;
  transition: 0.25s;
}

.navbar .btn:hover {
  color: #00eaff;
}

.navbar .btn:hover::after {
  width: 100%;
}

.navbar .btn.active {
  color: #00eaff;
  border: 1px solid rgba(0, 234, 255, 0.6);
  border-radius: 6px;
  background: rgba(0, 234, 255, 0.08);
  box-shadow:
    0 0 10px rgba(0, 234, 255, 0.7),
    inset 0 0 6px rgba(0, 234, 255, 0.4);
  text-shadow: 0 0 6px rgba(0, 234, 255, 0.9);
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow:
      0 0 6px rgba(0, 234, 255, 0.5),
      inset 0 0 4px rgba(0, 234, 255, 0.3);
  }
  to {
    box-shadow:
      0 0 16px rgba(0, 234, 255, 1),
      inset 0 0 10px rgba(0, 234, 255, 0.6);
  }
}

/* CONTACT LINKS */
.contact a {
  color: white;
  text-decoration: none;
}

.contact a:hover {
  color: #1e90ff;
  text-decoration: underline;
  font-weight: bold;
}

/* HERO and location block */
.hero, .location-block {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 0;
  background: transparent;
}

.hero::before, .location-block::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(30,144,255,0.25), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(30,144,255,0.5);
}

.hero p {
  color: #aaa;
  margin-bottom: 10px;
}

.hero h1,
.hero p,
.location-block h2,
.location-block p {
  margin-block: 0;
}

.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* FORM CONTAINER */
form {
  width: 100%;
  max-width: 520px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(11, 15, 20, 0.6);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 10px;
}

/* INPUTS */
input,
textarea {
  width: 100%;
  display: block;
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 8px rgba(30, 144, 255, 0.4);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* PRIMARY BUTTON */
.btn-primary {
  padding: 15px 30px;
  background: linear-gradient(45deg, #1e90ff, #007bff);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
  transition: 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-primary:hover {
  box-shadow: 0 0 18px rgba(30, 144, 255, 0.6);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 30px;
  background: #0b0f14;
  border-top: 1px solid rgba(30, 144, 255, 0.2);
  color: #aaa;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
  }

  .logo {
    height: 60px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .navbar .btn {
    font-size: 13px;
    padding: 6px 10px;
  }

  .contact {
    text-align: center;
    width: 100%;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    top: -40px;
  }
}

/* PROJECT GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  text-align: left;
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.1);
  transition: 0.2s;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(30, 144, 255, 0.25);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #1e90ff;
}

.project-card p {
  margin: 4px 0;
  color: #ccc;
  font-size: 14px;
}

/* FIXED IMAGE SYSTEM */
.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* IMAGE ROW */
.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.image-row img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  object-fit: contain;
}