/* Full Height Flex Layout */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0e0d1b;
  color: white;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 40px 40px 60px;
  display: flex;
  justify-content: center;
}

/* Card Grid Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1300px;
  margin-bottom: 40px;
}

/* Standard Cards */
.card {
  background-color: #18172b;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card h3 {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.2;
  color: #00c3ff;
}

.card p {
  font-size: 14px;
  opacity: 0;
  line-height: 1.3;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: scale(1.05);
  background-color: #24224b;
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.3);
}

.card:hover p {
  opacity: 1;
}

.card-icon {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Wide Bottom Card */
.wide-card {
  grid-column: span 4;
  background-color: #18172b;
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 300px;
  transition: all 0.3s ease;
  margin-bottom: 40px;
}

.wide-card .logo {
  height: 120px;
  width: auto;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.wide-card h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #00c3ff;
}

.wide-card p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wide-card:hover {
  background-color: #24224b;
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.3);
}

.wide-card:hover p {
  opacity: 1;
}

.wide-card:hover .logo {
  transform: scale(1.05);
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  background-color: #0e0d1b;
  border-top: 1px solid #333;
  font-size: 14px;
  height: 64px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.footer-right button {
  background-color: #00c3ff;
  border: none;
  padding: 10px 18px 10px 14px;
  border-radius: 6px;
  color: #000;
  font-weight: 500;
  font-size: 16.8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.email-icon {
  color: #000;
  transition: color 0.2s ease;
}

.footer-right button:hover {
  background-color: #00a5d4;
}

.footer-right button:hover .email-icon {
  color: #000;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
  .wide-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  main {
    padding: 30px 20px 80px;
  }
  
  .card-grid {
    grid-template-columns: minmax(0, 400px);
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
  }
  
  .card {
    height: auto;
    min-height: 200px;
    padding: 20px 15px;
  }
  
  .card-icon {
    width: 80px;
    height: 80px;
  }
  
  .wide-card {
    grid-column: 1;
    height: auto;
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  
  .wide-card .logo {
    height: 80px;
  }
  
  .wide-card h3 {
    font-size: 22px;
  }
  
  .wide-card p {
    font-size: 14px;
  }
}

.iframe-card {
  grid-column: 1 / -1; /* Makes it span full width */
  width: 100%;
  height: 700px; /* Adjust height as needed */
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.iframe-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}



/* Contact Form Wide Card */
.wide-card.contact-form {
  width: 100%;
  max-width: 1300px; /* Matches other wide card */
  margin: 0 auto 60px; /* 60px bottom spacing */
  padding: 50px;
  box-sizing: border-box;
}

/* Form Styles */
.contact-form h3 {
  margin-bottom: 30px;
  text-align: center;
}

.contact-form form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #0e0d1b;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group textarea {
  min-height: 180px;
}

.submit-btn {
  display: block;
  width: 200px;
  margin: 30px auto 0;
  padding: 15px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .wide-card.contact-form {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .wide-card.contact-form {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px;
  }
  
  .submit-btn {
    width: 100%;
    max-width: 200px;
    padding: 12px;
  }
}