* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;å
  margin: 0;
  background-color: #f9fafc;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: #004aad;
  color: white;
  padding: 30px 20px 10px;
  text-align: center;
}

header img {
  max-width: 400px;
  display: block;
  margin: 0 auto 15px;
}

header h1 {
  margin-bottom: 5px;
}

header p {
  margin-bottom: 20px;
}

/* Navigation Bar */
nav {
  background-color: #003c8c;
  padding: 10px 0;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #cce0ff;
}

/* Main Content */
main {
  flex: 1;
  padding: 40px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2 {
  margin-bottom: 15px;
}

p {
  line-height: 1.6;
}

/* Product/Service Boxes Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #e6efff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Box */
.contact {
  background-color: white;
  border: 2px solid #004aad;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.contact a {
  color: #004aad;
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: #004aad;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Responsive Layout */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }
}

/* Instruction Section */
.instructions {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.instructions h2 {
  color: #004aad;
  margin-bottom: 10px;
}

.instructions p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

/* Enhanced Form Styling */
form {
  margin-top: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  color: #004aad;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="file"] {
  padding: 12px;
  border: 1.5px solid #ccd6f6;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fdfdff;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus {
  border-color: #004aad;
  box-shadow: 0 0 6px rgba(0, 74, 173, 0.3);
  outline: none;
}

button {
  background: linear-gradient(135deg, #004aad, #006bff);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 74, 173, 0.3);
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #003c8c, #0057e7);
  box-shadow: 0 6px 14px rgba(0, 74, 173, 0.4);
  transform: translateY(-1px);
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #ccd6f6;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fdfdff;
  transition: all 0.3s ease;
  resize: vertical;
}

textarea:focus {
  border-color: #004aad;
  box-shadow: 0 0 6px rgba(0, 74, 173, 0.3);
  outline: none;
}

/* Product Table Styling */
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
}

.product-table th, .product-table td {
  border-bottom: 1px solid #dbe2ef;
  padding: 12px 15px;
  text-align: left;
}

.product-table th {
  background-color: #004aad;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.product-table tr:hover {
  background-color: #f0f6ff;
}

/* Add to Cart Button */
.add-btn {
  background: linear-gradient(135deg, #004aad, #006bff);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background: linear-gradient(135deg, #003c8c, #0057e7);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 74, 173, 0.3);
}

/* Social Media Buttons */
.social-links {
  margin-top: 25px;
  text-align: center;
}

.social-links p {
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px 10px;
  padding: 10px 20px;
  border-radius: 30px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn .social-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  flex-shrink: 0;
}

.social-btn .fallback-text {
  display: inline;
}

/* Specific Platform Colors */
.social-btn.facebook {
  background: #1877f2;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hide fallback text if SVG is rendered */
.social-btn svg + .fallback-text {
  display: none;
}
