/* Contact Page Styles */

/* Interactive Contact Form Section */
.interactive-contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem 0;
}

.progress-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1.5px;
  overflow: visible;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.3), rgba(96, 165, 250, 1));
  box-shadow: 2px 0 12px rgba(96, 165, 250, 0.8), 0 0 8px rgba(59, 130, 246, 0.5);
  transition: width 0.3s ease;
  border-radius: 1.5px;
}

.progress-step {
  display: none;
}

.conversation-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: rgba(30, 64, 175, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-top: 1px solid rgba(147, 197, 253, 0.5);
  border-radius: 1.5rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.conversation-form::before {
  content: '';
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: var(--progress-width, 25%);
  height: 300px;
  background: linear-gradient(
    to bottom,
    rgba(96, 165, 250, 0.25) 0%,
    rgba(96, 165, 250, 0.18) 15%,
    rgba(59, 130, 246, 0.12) 30%,
    rgba(59, 130, 246, 0.08) 45%,
    rgba(59, 130, 246, 0.05) 60%,
    rgba(59, 130, 246, 0.02) 75%,
    transparent 90%,
    transparent 100%
  );
  filter: blur(15px);
  pointer-events: none;
  transition: width 0.3s ease;
  z-index: 0;
}

.conversation-form > * {
  position: relative;
  z-index: 1;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.conversation-question {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-foreground);
  line-height: 1.3;
  margin: 0;
}

.conversation-subtext {
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
  margin: -0.25rem 0 0 0;
}

.conversation-input,
.conversation-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-foreground);
  background-color: transparent;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-full);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.conversation-input::placeholder,
.conversation-textarea::placeholder {
  color: var(--color-muted-foreground);
}

.conversation-input:focus,
.conversation-textarea:focus {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.3);
}

.conversation-textarea {
  resize: vertical;
  min-height: 120px;
  border-radius: var(--radius-lg);
}

.button-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.conversation-next,
.conversation-back,
.conversation-skip,
.conversation-submit,
.conversation-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.conversation-next,
.conversation-submit {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
  flex: 1;
  min-width: 140px;
}

.conversation-next:hover,
.conversation-submit:hover {
  opacity: 0.9;
}

.conversation-back {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}

.conversation-back:hover {
  background-color: var(--color-muted);
}

.conversation-skip {
  background-color: transparent;
  color: var(--color-muted-foreground);
  border-color: transparent;
  padding: 0.625rem 1.5rem;
}

.conversation-skip:hover {
  color: var(--color-foreground);
}

.success-container {
  text-align: center;
  padding: 2rem 0;
}

.success-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.success-icon {
  margin: 0 auto 1.5rem auto;
  width: 48px;
  height: 48px;
  color: var(--color-foreground);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-foreground);
  margin: 0 0 0.5rem 0;
}

.success-message {
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
  margin: 0;
}

/* Navigation */
.nav-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  padding: 0 3rem;
}

.nav-wrapper {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .nav-header {
    padding: 0 1.5rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-foreground);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.95;
}

.nav-link.active {
  opacity: 1;
}

.nav-icon {
  display: none;
}

.nav-text {
  position: relative;
  display: inline-block;
}

.nav-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover .nav-text::after,
.nav-link.active .nav-text::after {
  transform: scaleX(1);
}

.nav-cta {
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-color: var(--color-foreground);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-foreground);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-foreground);
  opacity: 0.7;
}

.theme-toggle:hover {
  opacity: 1;
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

:root .theme-toggle .sun-icon {
  display: block;
}

:root .theme-toggle .moon-icon {
  display: none;
}

.dark .theme-toggle .sun-icon {
  display: none;
}

.dark .theme-toggle .moon-icon {
  display: block;
}

.nav-mobile-right {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-foreground);
}

.mobile-menu {
  position: fixed;
  top: 5rem;
  left: 1rem;
  right: 1rem;
  display: none;
  background: rgba(30, 64, 175, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-top: 1px solid rgba(147, 197, 253, 0.5);
  border-radius: 1.5rem;
  padding: 1.25rem;
  z-index: 40;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(96, 165, 250, 0.15) 0%,
    rgba(96, 165, 250, 0.10) 20%,
    rgba(59, 130, 246, 0.06) 40%,
    rgba(59, 130, 246, 0.03) 60%,
    transparent 80%,
    transparent 100%
  );
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.mobile-menu.active {
  display: block;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 39;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

/* Hero Section - Fixed Full-Page Background */
.hero {
  display: none;
  background-color: var(--color-background);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../attached_assets/generated_images/Dark_blue_tech_infrastructure_background_26a0b3c9.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

/* Scroll dimming overlay */
.hero-scroll-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 2;
  transition: background-color 0.1s ease-out;
  pointer-events: none;
}

/* Hero content at top of page */
.hero-content-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
}

.hero-content {
  position: relative;
  color: var(--color-foreground);
  padding: 2rem 0;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--color-foreground);
  text-align: left;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.75;
  max-width: 48rem;
  color: var(--color-foreground);
  opacity: 0.9;
  margin-bottom: 0;
  text-align: left;
}

/* Main content wrapper that scrolls over fixed hero */
.main-content-wrapper {
  position: relative;
  z-index: 1;
}

/* Old gradient transition - no longer needed */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: linear-gradient(
    to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.22) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0.65) 70%,
    rgba(255, 255, 255, 0.78) 80%,
    rgba(255, 255, 255, 0.9) 90%,
    var(--color-background) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.dark .hero::after {
  background: linear-gradient(
    to bottom, 
    transparent 0%, 
    rgba(23, 23, 23, 0.05) 20%,
    rgba(23, 23, 23, 0.12) 30%,
    rgba(23, 23, 23, 0.22) 40%,
    rgba(23, 23, 23, 0.35) 50%,
    rgba(23, 23, 23, 0.5) 60%,
    rgba(23, 23, 23, 0.65) 70%,
    rgba(23, 23, 23, 0.78) 80%,
    rgba(23, 23, 23, 0.9) 90%,
    var(--color-background) 100%
  );
}

/* Contact page - thinner borders */
.card {
  border-width: 0.1px;
}

.input,
.textarea {
  border-width: 0.1px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form-wrapper {
  order: 2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  order: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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


/* Success Message */
.success-message {
  position: fixed;
  top: 5rem;
  right: 1rem;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-1rem);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 100;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.success-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.success-icon {
  font-size: 1.25rem;
  font-weight: 700;
}

.success-content strong {
  display: block;
  margin-bottom: 0.25rem;
}

.success-content p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  position: relative;
  padding: 2rem 0;
  background-color: transparent;
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 3rem;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-foreground);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--color-foreground);
  opacity: 0.2;
  margin: 0.5rem 0;
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  opacity: 0.7;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1.5rem;
}

.footer-email {
  font-size: 0.875rem;
  color: var(--color-foreground);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s;
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.footer-email:hover {
  opacity: 1;
}

.footer-address {
  font-size: 0.875rem;
  color: var(--color-foreground);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  
  .nav-links {
    display: none;
  }
  
  .nav-mobile-right {
    display: flex;
  }
  
  .footer-content {
    padding: 0 1.5rem;
  }
}

@media (min-width: 769px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) {
  .contact-grid {
    grid-template-columns: 2fr 1fr;
  }
  
  .contact-form-wrapper {
    order: 1;
  }
  
  .contact-info {
    order: 2;
  }
}
