/* Load BitcountGridSingle font */
@font-face {
  font-family: 'BitcountGridSingle';
  src: url('fonts/BitcountGridSingle_Cursive-Light.ttf') format('truetype');
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'BitcountGridSingle', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  overflow-x: hidden;
  padding-top: 0;
}

/* Contact Page Layout */
.contact-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #2f7a86 0%, #235962 100%);
  position: relative;
}

/* Hero Section */
.contact-hero {
  background: linear-gradient(135deg, rgba(47, 122, 134, 0.95) 0%, rgba(35, 89, 98, 0.95) 100%);
  padding: 12px 40px 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

/* Contact Content */
.contact-content {
  padding: 20px 40px;
  background: #e9ecef;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  height: 100%;
}

/* Contact Methods */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.social-cards .contact-card {
  padding: 25px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(30px);
  border: 3px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  animation: liquidBubbleFloat 5s ease-in-out infinite;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.social-cards .contact-card::before {
  content: '';
  position: absolute;
  top: -70%;
  left: -70%;
  width: 240%;
  height: 240%;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 200, 255, 0.2) 50%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.4) 0%, rgba(200, 255, 255, 0.2) 40%, rgba(255, 255, 200, 0.1) 60%, transparent 80%),
    radial-gradient(circle at 50% 20%, rgba(255, 200, 200, 0.3) 0%, rgba(200, 255, 200, 0.2) 40%, transparent 70%);
  animation: iridescentRotate 12s linear infinite;
  border-radius: 50%;
}

.social-cards .contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 200, 255, 0.15) 25%, rgba(200, 255, 255, 0.15) 50%, rgba(255, 255, 200, 0.15) 75%, rgba(255, 255, 255, 0.1) 100%),
    linear-gradient(45deg, transparent 20%, rgba(255, 200, 200, 0.1) 40%, rgba(200, 255, 200, 0.1) 60%, transparent 80%);
  border-radius: 50px;
  animation: bubbleFlow 6s ease-in-out infinite;
}

@keyframes liquidBubbleFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  25% { transform: translateY(-4px) scale(1.03) rotate(3deg); }
  50% { transform: translateY(-2px) scale(0.97) rotate(0deg); }
  75% { transform: translateY(-3px) scale(1.02) rotate(-2deg); }
}

@keyframes iridescentRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bubbleFlow {
  0%, 100% {
    opacity: 0.6;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 200, 255, 0.15) 25%, rgba(200, 255, 255, 0.15) 50%, rgba(255, 255, 200, 0.15) 75%, rgba(255, 255, 255, 0.1) 100%);
  }
  33% {
    opacity: 0.8;
    background:
      linear-gradient(135deg, rgba(255, 200, 255, 0.2) 0%, rgba(200, 255, 255, 0.2) 25%, rgba(255, 255, 200, 0.2) 50%, rgba(255, 200, 200, 0.15) 75%, rgba(255, 255, 255, 0.15) 100%);
  }
  66% {
    background:
      linear-gradient(135deg, rgba(200, 255, 255, 0.25) 0%, rgba(255, 255, 200, 0.2) 25%, rgba(255, 200, 200, 0.2) 50%, rgba(200, 200, 255, 0.15) 75%, rgba(255, 255, 255, 0.1) 100%);
  }
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: transparent;
}

.social-cards .contact-card:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.95);
  animation-play-state: paused;
}

.social-cards .contact-card:hover::before {
  animation-play-state: paused;
  opacity: 0.8;
}

.social-cards .contact-card:hover::after {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.2) 50%, transparent 80%);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.contact-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.contact-card p {
  color: #6c757d;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-link {
  color: #4ea9bd;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
  display: inline-block;
}

.contact-link:hover {
  color: #3a7a8a;
}

/* Social Card Links */
.social-card-link {
  text-decoration: none;
  display: block;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
}

.social-card-link:hover {
  transform: translateY(-2px);
}

/* Email Card - Full Width */
.email-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #4ea9bd 0%, #3a7a8a 100%);
  color: white;
  border-radius: 30px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 10px;
  position: relative;
}

.email-card h3,
.email-card p {
  color: white;
  margin: 0;
}

.email-card .contact-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 6px auto 0 auto;
  display: block;
  width: fit-content;
}

.email-card .contact-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Contact Form */
.contact-form-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(78, 169, 189, 0.1);
}

.form-container h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 18px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Social Cards Layout */
.social-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

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

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4ea9bd;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(78, 169, 189, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(135deg, #4ea9bd 0%, #3a7a8a 100%);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 169, 189, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Back Button */
.back-button {
  position: fixed;
  top: 30px;
  left: 30px;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.95);
  color: #4ea9bd;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background: #ffffff;
  transform: translateX(-5px) translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: #3a7a8a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-hero {
    padding: 10px 20px 4px;
  }

  .hero-title {
    font-size: 22px;
  }

  .contact-content {
    padding: 8px 20px;
    height: auto;
    min-height: calc(100vh - 30px);
  }

  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Order: form first, then email, then social */
  .contact-form-section {
    order: 1 !important;
  }

  .contact-methods {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .email-card {
    order: 1 !important;
    padding: 14px;
    gap: 8px;
  }

  .email-card .contact-link {
    margin: 4px auto 0 auto;
    padding: 6px 12px;
  }

  .social-cards {
    order: 2 !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .social-card-link {
    width: 100% !important;
  }

  .contact-form-section {
    width: 100% !important;
    padding: 15px !important;
  }

  .email-card {
    width: 100% !important;
    padding: 12px !important;
  }

  .social-cards .contact-card {
    padding: 12px !important;
  }

  .card-icon {
    font-size: 36px !important;
    margin-bottom: 10px !important;
  }

  .contact-card h3 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  .contact-card p {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .contact-link {
    font-size: 14px !important;
  }

  .form-container h2 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px !important;
    font-size: 14px !important;
  }

  .submit-btn {
    padding: 12px 25px !important;
    font-size: 14px !important;
  }

  .form-row {
    grid-template-columns: 1fr;

  .social-cards .contact-card {
    padding: 14px;
    border-radius: 45px;
    backdrop-filter: blur(25px);
  }

  .contact-form-section {
    padding: 20px 18px;
  }

  .form-container h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }

  .social-cards .contact-card {
    padding: 14px;
    border-radius: 40px;
    backdrop-filter: blur(20px);
  }

  .card-icon {
    font-size: 32px;
  }

  .contact-form-section {
    padding: 18px 14px;
  }
}
