/* General Styles */
:root {
  --bg-dark: #121418; /* Slightly darker main background */
  --bg-medium: #1e2128; /* Card/input background */
  --bg-light: #262a36; /* Slightly lighter background variant */
  --primary-blue: #2970ff; /* Main accent */
  --primary-blue-light: #4e89ff; /* Lighter accent for gradients */
  --accent-cyan: #4a90e2; /* Secondary accent */
  --accent-cyan-light: #4e89ff; /* Lighter cyan for labels/highlights */
  --text-light: #ffffff;
  --text-medium: #bdc3c7; /* For subtitles, labels */
  --error-red: #ff6b6b; /* Validation errors */
  --border-color: rgba(255, 255, 255, 0.1); /* Subtle borders */
  --shadow-color-light: rgba(0, 0, 0, 0.2); /* Softer shadows */
  --shadow-color-medium: rgba(0, 0, 0, 0.4);
  --shadow-color-primary: rgba(41, 112, 255, 0.25); /* Accent shadow */
  --shadow-color-primary-hover: rgba(41, 112, 255, 0.4);
  --shadow-color-accent: rgba(129, 236, 236, 0.3); /* Cyan shadow */
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px; /* Added top padding */
  gap: 80px;
  max-width: 1100px; /* Slightly narrower for better focus */
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  text-align: center;
  margin-top: 40px; /* Reduced top margin */
  width: 100%;
  padding: 100px 20px; /* Increased vertical padding */
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
  box-shadow: 0 25px 50px -12px var(--shadow-color-medium); /* More pronounced shadow */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-gradient {
  position: absolute;
  top: -60%;
  left: -60%;
  right: -60%;
  bottom: -60%;
  background: radial-gradient(
      circle at top right,
      rgba(41, 112, 255, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(129, 236, 236, 0.12) 0%,
      transparent 60%
    );
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform; /* Optimize animation */
}

/* Animated shapes in hero */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  border-radius: 16px;
}
.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
  opacity: 0.06; /* Keep subtle */
  animation: float 15s infinite ease-in-out alternate;
}
.shape-1 {
  width: 220px;
  height: 220px;
  top: 10%;
  left: 15%;
  animation-duration: 18s;
}
.shape-2 {
  width: 160px;
  height: 160px;
  bottom: 15%;
  right: 10%;
  animation-duration: 12s;
  animation-delay: -5s;
}
.shape-3 {
  width: 110px;
  height: 110px;
  top: 50%;
  left: 45%;
  transform: translateY(-50%);
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes float {
  from {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate(25px, 35px) rotate(25deg) scale(1.05);
  }
}

.hero-section h1 {
  font-size: clamp(2.6rem, 6vw, 3.8rem); /* Slightly larger */
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 15px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}

.hero-section:hover h1 {
  transform: scale(1.02);
}

.hero-section p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-light); /* Use lighter cyan */
  font-weight: 400; /* Normal weight */
  max-width: 650px;
  margin: 0 auto;
}

/* Section Headers */
section h2 {
  font-size: clamp(2rem, 5vw, 2.5rem); /* Slightly larger */
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 50px; /* Increased margin */
  position: relative;
  display: inline-block; /* For underline positioning */
  padding-bottom: 10px; /* Space for underline */
}

.highlight {
  color: var(--primary-blue);
}

section h2::after {
  /* Stylish underline */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px; /* Slightly wider */
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  border-radius: 4px;
  transition: width 0.4s ease;
}
section:hover h2::after {
  width: 80px; /* Extend on section hover */
}

/* Observer Base Styles for Sections */
.observe-me {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.observe-me.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Info Section */
.contact-info-section,
.map-section,
.contact-form-section {
  /* Apply base observer class via HTML */
  width: 100%;
  max-width: 900px; /* Consistent max-width */
  text-align: center; /* Center section headings */
}

/* Center Specific Headings */
.contact-info-section h2,
.map-section h2,
.contact-form-section .form-intro h2 {
  text-align: center;
}
.contact-form-section .form-intro h2::after {
  /* Center underline for intro */
  left: 50%;
  transform: translateX(-50%);
}
.contact-info-section h2::after,
.map-section h2::after {
  /* Center underline */
  left: 50%;
  transform: translateX(-50%);
}

.contact-info-card {
  background: linear-gradient(
    140deg,
    var(--bg-light) 0%,
    var(--bg-medium) 100%
  );
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 15px 35px var(--shadow-color-light);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  text-align: left; /* Reset text align for content */
}

.contact-info-card::before {
  /* Subtle gradient overlay */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    140deg,
    transparent 0%,
    rgba(129, 236, 236, 0.04) 100%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.contact-info-card:hover {
  transform: translateY(-10px); /* Slightly less lift */
  box-shadow: 0 25px 50px -10px var(--shadow-color-medium);
  border-color: rgba(129, 236, 236, 0.4);
}

.contact-info-card:hover::before {
  opacity: 0;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 30px; /* Adjust gap */
}

.info-item {
  /* Also observed for stagger */
  display: flex;
  align-items: center; /* Center align items vertically */
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.3s ease, opacity 0.8s ease-out,
    transform 0.8s ease-out; /* Added observer transitions */
  opacity: 0; /* Base for observer */
  transform: translateX(-20px); /* Start slightly left */
  will-change: transform, opacity;
}
.info-item.in-view {
  /* Observer active state */
  opacity: 1;
  transform: translateX(0);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item:hover {
  transform: translateX(
    5px
  ) !important; /* Slight nudge on hover, !important to override observer transform if needed */
}

.info-icon {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-light) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 15px var(--shadow-color-primary);
}

.info-icon i {
  font-size: 1.4rem;
  color: var(--text-light);
}

.info-item:hover .info-icon {
  transform: scale(1.1) rotate(5deg); /* Combined effect */
  box-shadow: 0 10px 25px var(--shadow-color-primary-hover);
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.9rem; /* Slightly smaller */
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--accent-cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.8px; /* Increased spacing */
}

.info-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.info-link {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  display: inline-block;
}

.info-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: -3px;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.info-link:hover {
  color: var(--primary-blue);
  transform: translateY(-1px);
}
.info-link:hover::after {
  width: 100%;
}

/* Social Links Styles */
.social-links-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.social-links-section h3 {
  font-size: 1.25rem;
  margin-bottom: 25px;
  color: var(--accent-cyan-light);
  font-weight: 500;
  text-align: left; /* Align left */
}

.social-links {
  display: flex;
  gap: 20px; /* Adjust gap */
  justify-content: flex-start;
}

.social-link {
  /* Also observed for stagger */
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--bg-light) 0%,
    var(--bg-medium) 100%
  ); /* Use bg colors */
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease, opacity 0.8s ease-out, transform 0.8s ease-out; /* Added observer transitions */
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: 0 5px 12px var(--shadow-color-light);
  opacity: 0; /* Base for observer */
  transform: scale(0.8); /* Start smaller */
  will-change: transform, opacity, background, box-shadow;
}
.social-link.in-view {
  /* Observer active state */
  opacity: 1;
  transform: scale(1);
}

.social-link i {
  font-size: 1.3rem;
  color: var(--primary-blue); /* Icon color */
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  transform: translateY(-6px) scale(1.05);
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-light) 100%
  );
  border-color: transparent;
  box-shadow: 0 10px 20px var(--shadow-color-primary);
}

.social-link:hover i {
  color: var(--text-light); /* Icon color on hover */
  transform: scale(1.1);
}

.social-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, bottom 0.3s ease, visibility 0s 0.3s; /* Delay hiding visibility */
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 10; /* Ensure tooltip is above other elements */
}

.social-link:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 135%;
  transition: opacity 0.3s ease, bottom 0.3s ease, visibility 0s 0s; /* Remove delay */
}

/* Map Section */
.map-container {
  position: relative; /* Needed for absolute positioning of the marker */
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px var(--shadow-color-light);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.map-container:hover {
  box-shadow: 0 25px 50px -10px var(--shadow-color-medium);
  transform: translateY(-10px);
  border-color: rgba(129, 236, 236, 0.4);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* No filter applied */
}

/* Custom Map Marker Overlay */
.custom-map-marker {
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(
    -50%,
    -100%
  ); /* Shift left by half its width, up by its full height */
  width: 40px; /* Adjust size as needed */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem; /* Size of the Font Awesome icon */
  color: var(--primary-blue); /* Marker color */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add shadow for visibility */
  z-index: 5; /* Ensure it's above the map iframe content */
  pointer-events: none; /* IMPORTANT: Allows clicks/drags to pass through to the map */
  animation: dropIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards; /* Optional: Animate entry with slight delay */
  opacity: 0; /* Start hidden for animation */
}

/* Keyframe animation for the marker */
@keyframes dropIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -150%); /* Start higher */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -100%); /* End at final position */
  }
}

/* Scroll Explore Section */
.scroll-explore-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 40px 0;
  padding: 20px 35px; /* Wider padding */
  transition: all 0.4s ease, opacity 0.5s ease, transform 0.5s ease; /* Added opacity/transform */
  opacity: 0; /* Start hidden */
  transform: translateY(20px); /* Start lower */
  background: rgba(30, 33, 40, 0.7); /* Slightly more opaque */
  border-radius: 50px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  width: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  will-change: transform, background, box-shadow; /* Optimize */
}

.scroll-explore-section.fade-in-visible {
  /* Class added by JS */
  opacity: 1;
  transform: translateY(0);
}

.scroll-explore-section:hover {
  transform: translateY(-5px);
  background: rgba(41, 112, 255, 0.2); /* Blueish tint */
  border-color: rgba(129, 236, 236, 0.4);
  box-shadow: 0 15px 30px rgba(41, 112, 255, 0.2);
}

.scroll-explore-text {
  font-size: 1rem;
  color: var(--accent-cyan-light);
  margin-bottom: 12px;
  transition: color 0.3s ease;
  font-weight: 500;
  text-align: center;
}

.scroll-explore-section:hover .scroll-explore-text {
  color: var(--primary-blue-light);
}

.scroll-explore-arrow svg {
  width: 38px;
  height: 38px; /* Slightly smaller */
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Maintain bounce */
}

/* Arrow stroke color */
.scroll-explore-arrow svg circle,
.scroll-explore-arrow svg path {
  stroke: var(--primary-blue);
  transition: stroke 0.3s ease;
}
.scroll-explore-section:hover .scroll-explore-arrow svg circle,
.scroll-explore-section:hover .scroll-explore-arrow svg path {
  stroke: var(--accent-cyan);
}

.scroll-explore-arrow svg.arrow-up {
  transform: rotate(180deg);
  animation: none; /* Stop bounce when up */
}
.scroll-explore-arrow svg.arrow-down {
  transform: rotate(0deg);
  animation: bounce 1.8s infinite ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  } /* Reduced bounce height */
}

/* Form Section */
.contact-form-section {
  /* Observer handles initial animation */
  display: none; /* Initially hidden, controlled by JS */
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  /* Transition for visibility toggle */
  opacity: 0; /* Start hidden for transition */
  transform: translateY(30px); /* Start lower for transition */
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.contact-form-section.visible {
  /* Class added by JS for toggle */
  opacity: 1;
  transform: translateY(0);
  display: flex; /* Make visible */
}

.form-container {
  flex: 1;
  min-width: 300px;
}

.form-intro {
  flex-basis: 35%; /* Give intro text less space */
  max-width: 320px; /* Limit width */
  align-self: flex-start; /* Align top */
  padding-top: 10px; /* Align roughly with first input */
}
.form-intro h2 {
  margin-top: 0;
  text-align: left;
}
.form-intro h2::after {
  left: 0;
  transform: none; /* Align underline left */
}
.form-intro p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: left;
}

.form-fields {
  flex-basis: 60%; /* Give form fields more space */
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
} /* Adjust gap */

/* Floating Label Styles */
.form-field {
  position: relative;
  margin-bottom: 12px; /* Space for error messages */
}

.form-field label {
  position: absolute;
  left: 18px; /* Match input padding + border */
  top: 16px;
  font-size: 1rem;
  color: var(--text-medium);
  background: var(--bg-light); /* Needs background to cover input border */
  padding: 0 6px;
  transition: all 0.25s ease-out;
  pointer-events: none;
  transform-origin: left top;
  z-index: 1; /* Ensure label is above input content */
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px 18px; /* Adjust padding */
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Needed for label z-index */
  box-sizing: border-box;
  appearance: none;
}
.form-field textarea {
  padding-top: 16px;
  resize: vertical;
  min-height: 120px;
}

/* Input focus state */
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3.5px rgba(41, 112, 255, 0.15); /* Slightly larger glow */
}

/* Label floating behavior */
.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  color: var(--accent-cyan-light);
  /* Background handled by initial state */
}

/* Hide placeholder visually but keep it for :not(:placeholder-shown) */
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: transparent;
  user-select: none; /* Prevent selection */
}

.input-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.input-row .form-field {
  flex: 1;
  min-width: calc(50% - 10px);
} /* Adjust min-width */

/* Submit Button */
.submit-btn {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-light) 100%
  );
  color: var(--text-light);
  border: none;
  padding: 15px 35px; /* Adjust padding */
  border-radius: 50px;
  font-size: 1.05rem; /* Adjust font size */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px -5px var(--shadow-color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Adjust gap */
  width: auto;
  margin-top: 15px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.submit-btn .btn-text,
.submit-btn .btn-icon {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
  /* Don't apply hover if disabled */
  background: linear-gradient(
    135deg,
    var(--primary-blue-light) 0%,
    var(--primary-blue) 100%
  );
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -8px var(--shadow-color-primary-hover);
}

.submit-btn:hover:not(:disabled) .btn-icon {
  transform: translateX(4px) rotate(10deg); /* Add rotation */
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Loading State */
.submit-btn.loading {
  cursor: wait;
  background: linear-gradient(
    135deg,
    var(--bg-light) 0%,
    var(--bg-medium) 100%
  );
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
  opacity: 0;
  transform: scale(0.8);
}

.spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite; /* Faster spin */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn.loading .spinner {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error Message */
.error-message-container {
  min-height: 20px; /* Reserve space */
  margin-top: 6px; /* Increased space */
}
.error-message {
  color: var(--error-red);
  font-size: 0.8rem; /* Slightly smaller */
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 5px;
  opacity: 0;
  transform: translateY(-5px);
  animation: fadeSlideIn 0.3s ease forwards;
}
.error-message i {
  font-size: 0.9rem; /* Slightly smaller icon */
}

/* Add border color for error fields */
.form-field.error input,
.form-field.error textarea {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3.5px rgba(255, 107, 107, 0.15); /* Red glow */
}
.form-field.error label {
  color: var(--error-red); /* Change label color on error */
}
/* Shake animation for error fields */
@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-3px);
  }
  40%,
  60% {
    transform: translateX(3px);
  }
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form submission message */
.submission-message {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-light) 100%
  ); /* Default success gradient */
  color: var(--text-light);
  padding: 16px 30px;
  border-radius: 8px; /* More standard radius */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: top 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.3s ease-out, visibility 0s 0.3s; /* Bouncier entry + fade */
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001; /* Above other elements */
  font-weight: 500;
  opacity: 0; /* Start hidden */
  visibility: hidden;
}
.submission-message.visible {
  top: 30px;
  opacity: 1;
  visibility: visible;
  transition: top 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.3s ease-out, visibility 0s 0s; /* Adjusted transition */
}
.submission-message.error {
  /* Specific style for error messages */
  background: linear-gradient(135deg, var(--error-red) 0%, #ff8a8a 100%);
}
.submission-message i {
  font-size: 1.2rem;
}

/* Responsive Styles */
@media only screen and (max-width: 900px) {
  /* Adjust breakpoint */
  .contact-form-section {
    gap: 30px;
  }
  .form-container.form-intro {
    flex-basis: 100%; /* Stack intro on top */
    max-width: none;
    text-align: center; /* Center intro text */
    padding-top: 0;
  }
  .form-container.form-intro h2 {
    text-align: center;
  }
  .form-container.form-intro h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .form-container.form-intro p {
    text-align: center;
  }
  .form-fields {
    flex-basis: 100%; /* Form takes full width */
  }
}

@media only screen and (max-width: 768px) {
  .contact-container {
    gap: 60px;
    padding: 30px 15px;
  }
  .hero-section {
    padding: 80px 15px;
  }
  .contact-info-card {
    padding: 30px 25px;
  } /* Adjust padding */
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .info-icon {
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
  }
  .info-icon i {
    font-size: 1.3rem;
  }
  .map-container {
    height: 350px;
  }
  .input-row {
    flex-direction: column;
    gap: 0;
  } /* Remove gap if stacking */
  .input-row .form-field {
    min-width: 100%; /* Full width when stacked */
    margin-bottom: 20px; /* Add margin between stacked inputs */
  }
  .input-row .form-field:last-child {
    margin-bottom: 0; /* Remove bottom margin from last item in row */
  }
  .submit-btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 1rem;
  } /* Full width on small screens */
  .social-links-section h3 {
    text-align: center;
  } /* Center social heading */
  .social-links {
    justify-content: center;
  } /* Center social icons */
}

@media only screen and (max-width: 480px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  section h2 {
    font-size: 1.8rem;
  }
  .contact-info-card {
    padding: 25px 20px;
  }
  .scroll-explore-section {
    padding: 15px 25px;
  }
  .scroll-explore-text {
    font-size: 0.9rem;
  }
  .custom-map-marker {
    font-size: 2rem;
  } /* Smaller marker */
  .submission-message {
    width: calc(100% - 40px);
    padding: 15px 20px;
    text-align: center;
    justify-content: center;
  }
  .submission-message i {
    display: none;
  } /* Hide icon on very small screens */
}
