/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  /* Brand colors */
  --ift-blue: #0b72ff;
  --ift-orange: #ff9b00;

  /* Background colors */
  --ift-bg: #020617;           /* Very dark backdrop */
  --ift-card-bg: rgba(15, 23, 42, 0.9);

  /* Text colors */
  --ift-text-main: #e5e7eb;    /* Light gray text */
  --ift-text-muted: #b0b7c3;   /* Muted text - 4.8:1 contrast on dark bg */

  /* Accessibility */
  --ift-focus-ring: #ff9b00;   /* Accessible focus outline in orange */
}
  
/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
  /* Background styling */
  background: var(--ift-bg);
}

body {
  /* Minimum height for short content */
  min-height: 100vh;
  min-height: 100dvh;

  /* Background gradient */
  background: radial-gradient(circle at top, #1f2937 0, var(--ift-bg) 50%);
  background-attachment: fixed;

  /* Typography */
  color: var(--ift-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Skip link for keyboard navigation */
a.skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #000000;
    border-radius: 0.25rem;
    z-index: 1000;
  }
  
  a.skip-link:focus {
    left: 0.5rem;
  }
  
/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Main wrapper - centers content */
.coming-soon-wrapper {
  /* Minimum height ensures centering on short pages */
  min-height: 100vh;
  min-height: 100dvh;

  /* Safe area padding for iOS devices */
  padding: max(1.5rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));

  /* Flexbox centering */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@media (min-width: 768px) {
  .coming-soon-wrapper {
    padding: 3rem 1rem;
  }
}

@media (min-width: 992px) {
  .coming-soon-wrapper {
    padding: 4rem 1rem;
  }
}
  
/* Main content card */
.ift-card {
  background-color: var(--ift-card-bg);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 3vw, 1.5rem);
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .ift-card {
    padding: clamp(2rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
  }
}

@media (min-width: 768px) {
  .ift-card {
    padding: 3rem;
    max-width: 640px;
  }
}

@media (min-width: 992px) {
  .ift-card {
    max-width: 820px;
    padding: 3rem 3.5rem;
  }
}

@media (min-width: 1200px) {
  .ift-card {
    max-width: 920px;
    padding: 3.5rem 4.5rem;
  }
}

@media (min-width: 1400px) {
  .ift-card {
    max-width: 1000px;
    padding: 4rem 5rem;
  }
}

/* ==========================================================================
   Branding & Typography
   ========================================================================== */

/* Logo image */
.logo-img {
    max-width: clamp(180px, 30vw, 230px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(11, 114, 255, 0.65));
    margin-bottom: clamp(1rem, 3vw, 1.5rem) !important;
  }
  
/* Brand name */
.brand-name {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ift-text-main);
    margin-bottom: 0.5rem;
  }
  
  .brand-subtitle {
    text-align: center;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3b82f6;  /* Lighter blue for WCAG AA compliance on gradient: 5.5:1 */
    margin-bottom: clamp(1rem, 3vw, 2rem);
  }

  @media (prefers-contrast: more) {
    .brand-subtitle {
      color: #60a5fa; /* Even lighter for high contrast mode */
    }
  }
  
/* ==========================================================================
   Language Toggle
   ========================================================================== */

.language-toggle .btn {
    border-radius: 999px;
    padding-inline: clamp(0.9rem, 2.5vw, 1.1rem);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    display: inline-flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.4rem);
  }
  
  .language-toggle .btn [aria-hidden="true"] {
    font-size: 1.1em;
    line-height: 1;
  }
  
  .language-toggle .btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--ift-blue), var(--ift-orange));
    border-color: transparent;
    color: #020617;
    font-weight: 600;
  }
  
  .language-toggle .btn[aria-pressed="false"] {
    background-color: transparent;
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--ift-text-muted);
  }
  
  .language-toggle .btn:focus-visible {
    outline: 3px solid var(--ift-focus-ring);
    outline-offset: 2px;
  }
  
  .language-toggle .btn:hover {
    background-color: rgba(148, 163, 184, 0.1);
  }
  
  .language-toggle .btn[aria-pressed="false"]:hover {
    background-color: rgba(148, 163, 184, 0.15);
    color: var(--ift-text-main);
  }
  
/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2 {
    color: var(--ift-text-main);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }
  
  .ift-highlight {
    color: var(--ift-orange);
  }
  
  .ift-body {
    font-size: clamp(0.9rem, 2.5vw, 0.98rem);
    color: var(--ift-text-main);
    line-height: 1.6;
  }
  
  .ift-body.mb-3 {
    margin-bottom: clamp(0.75rem, 2vw, 1rem) !important;
  }
  
  .ift-body.mb-0 {
    margin-bottom: 0 !important;
  }
  
/* Badge component */
.ift-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: clamp(0.25rem, 1vw, 0.3rem) clamp(0.5rem, 1.5vw, 0.7rem);
    border-radius: 999px;
    background: linear-gradient(
      135deg,
      rgba(11, 114, 255, 0.15),
      rgba(255, 155, 0, 0.18)
    );
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #f9fafb;
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  }
  
  .ift-badge span {
    display: inline-block;
  }
  
  .ift-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  }
  
/* ==========================================================================
   Footer
   ========================================================================== */

.ift-footer {
    font-size: 0.8rem;
    color: var(--ift-text-muted);
    margin-top: 2rem;
  }
  
  /* Ensure footer text meets contrast - #9ca3af on dark: ~4.6:1 - passes AA */
  @media (prefers-contrast: more) {
    .ift-footer {
      color: #d1d5db; /* Lighter gray for better contrast */
    }
  }
  
/* Links */
.ift-link {
    color: var(--ift-blue);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  
  .ift-link:hover,
  .ift-link:focus {
    color: #3b82f6; /* Lighter blue for better visibility on hover */
    text-decoration-thickness: 2px;
    outline: 2px solid var(--ift-focus-ring);
    outline-offset: 2px;
    border-radius: 2px;
  }
  
/* ==========================================================================
   Navigation Components
   ========================================================================== */

/* Back button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.5rem, 1.5vw, 0.625rem) clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 1.5rem;
    color: var(--ift-text-main);
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 0.5rem;
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.6),
      rgba(15, 23, 42, 0.4)
    );
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
  }
  
  .back-button:hover {
    color: var(--ift-text-main);
    background: linear-gradient(
      135deg,
      rgba(11, 114, 255, 0.15),
      rgba(255, 155, 0, 0.12)
    );
    border-color: var(--ift-orange);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 155, 0, 0.2);
  }
  
  .back-button:focus {
    color: var(--ift-text-main);
    background: linear-gradient(
      135deg,
      rgba(11, 114, 255, 0.15),
      rgba(255, 155, 0, 0.12)
    );
    border-color: var(--ift-orange);
    text-decoration: none;
    outline: 2px solid var(--ift-focus-ring);
    outline-offset: 2px;
  }
  
  .back-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 155, 0, 0.15);
  }
  
  .back-button-icon {
    font-size: 1.1em;
    line-height: 1;
    opacity: 0.9;
  }
  
/* Footer navigation */
.footer-nav {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
  }
  
  .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
  }
  
  .footer-nav li {
    display: inline;
  }
  
  .footer-nav a {
    color: var(--ift-text-muted);
    text-decoration: none;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    transition: color 0.2s ease;
  }
  
  .footer-nav a:hover,
  .footer-nav a:focus {
    color: var(--ift-orange);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  
  .footer-nav .separator {
    color: #8b939f;  /* 4.5:1 contrast - WCAG AA compliant */
    opacity: 1;
  }
  
  .footer-nav .current-page {
    color: var(--ift-text-main);
    font-weight: 500;
  }
  
/* ==========================================================================
   Email Display & Copy Functionality
   ========================================================================== */

.email-link {
    font-family: monospace;
    word-break: break-all;
    display: inline-block;
    color: var(--ift-blue);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  
  .email-link:hover,
  .email-link:focus {
    color: #3b82f6; /* Lighter blue for better visibility */
    text-decoration-thickness: 2px;
    outline: 2px solid var(--ift-focus-ring);
    outline-offset: 2px;
    border-radius: 2px;
  }
  
  .email-address {
    font-family: monospace;
    word-break: break-all;
    display: inline;
  }
  
  .email-address .email-at {
    user-select: none;
  }
  
  .email-copy-btn {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.6rem, 1.5vw, 0.75rem);
    vertical-align: middle;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.6),
      rgba(15, 23, 42, 0.4)
    );
    color: var(--ift-text-main);
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
  
  .email-copy-btn:hover {
    background: linear-gradient(
      135deg,
      rgba(11, 114, 255, 0.15),
      rgba(255, 155, 0, 0.12)
    );
    border-color: var(--ift-orange);
    color: var(--ift-text-main);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 155, 0, 0.2);
  }
  
  .email-copy-btn:focus-visible {
    outline: 2px solid var(--ift-focus-ring);
    outline-offset: 2px;
    background: linear-gradient(
      135deg,
      rgba(11, 114, 255, 0.15),
      rgba(255, 155, 0, 0.12)
    );
    border-color: var(--ift-orange);
  }
  
  .email-copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(255, 155, 0, 0.15);
  }
  
  .email-copy-btn.copied {
    background: linear-gradient(
      135deg,
      rgba(34, 197, 94, 0.2),
      rgba(34, 197, 94, 0.15)
    );
    border-color: #22c55e;
    color: var(--ift-text-main);
  }
  
  .email-copy-btn.copied:hover {
    background: linear-gradient(
      135deg,
      rgba(34, 197, 94, 0.25),
      rgba(34, 197, 94, 0.2)
    );
    border-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
  }
  
  .copy-icon {
    display: inline-block;
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1;
  }
  
  .copy-text {
    display: inline-block;
    font-size: 0.9em;
  }
  
  .email-copy-btn.copied .copy-text::after {
    content: " ✓";
    color: #22c55e;
    font-weight: 600;
  }
  
/* ==========================================================================
   Honeypot Fields (Spam Protection)
   ========================================================================== */

/* Hide honeypot fields using multiple techniques for maximum bot-catching */
.ift-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.ift-hp-field input,
.ift-hp-field label {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* ==========================================================================
   Form Components
   ========================================================================== */

.form-control {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--ift-text-main);
    padding: 0.75rem;
  }
  
  .form-control:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--ift-blue);
    color: var(--ift-text-main);
    box-shadow: 0 0 0 0.2rem rgba(11, 114, 255, 0.25);
  }
  
  .form-control::placeholder {
    color: #b8bcc9;  /* Improved contrast: 5.1:1 - WCAG AA compliant */
    opacity: 1;
  }
  
  .form-control.is-invalid {
    border-color: var(--ift-orange);
  }
  
  .form-control.is-valid {
    border-color: #22c55e;
  }
  
  .form-label {
    color: var(--ift-text-main);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .form-check-input {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.4);
  }
  
  .form-check-input:checked {
    background-color: var(--ift-blue);
    border-color: var(--ift-blue);
  }
  
  .form-check-input:focus {
    border-color: var(--ift-blue);
    box-shadow: 0 0 0 0.2rem rgba(11, 114, 255, 0.25);
  }
  
  .form-check-input.is-invalid {
    border-color: var(--ift-orange);
  }
  
  .form-check-label {
    color: var(--ift-text-main);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .invalid-feedback {
    display: none;
    color: var(--ift-orange);
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }
  
  .form-control.is-invalid ~ .invalid-feedback,
  .form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--ift-blue), var(--ift-orange));
    border: none;
    color: #020617;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: opacity 0.2s;
    border-radius: 0.5rem;
  }
  
  .btn-primary:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, var(--ift-blue), var(--ift-orange));
    color: #020617;
  }
  
  .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 114, 255, 0.5);
    outline: none;
  }
  
  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .alert {
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--ift-text-main);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
  }
  
  .alert-info {
    border-color: var(--ift-blue);
    background-color: rgba(11, 114, 255, 0.1);
  }
  
  .alert-success {
    border-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
  }
  
  .alert-danger {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
  }
  
  .alert small {
    color: var(--ift-text-muted);
    line-height: 1.5;
  }
  
/* Ensure form elements work with language toggle */
.lang-block form {
  margin-top: 1rem;
}

/* Section dividers */
.lang-block.mt-4 {
  position: relative;
  padding-top: 2rem;
}

.lang-block.mt-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 400px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ift-blue), var(--ift-orange), transparent);
  border-radius: 1px;
}

/* Heading styles for sections */
.h4 {
    color: var(--ift-orange);
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
/* Text muted styling */
.text-muted {
    color: var(--ift-text-muted) !important;
  }
  
  .small {
    font-size: 0.875rem;
  }
  
/* ==========================================================================
   Team Section
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .team-title {
    min-height: 2.5em; /* Ensures bios align when titles have different line counts */
  }
}

.team-member {
  text-align: center;
}

.team-photo {
  width: clamp(140px, 30vw, 180px);
  height: clamp(140px, 30vw, 180px);
  border-radius: 0.75rem;
  object-fit: cover;
  border: 3px solid var(--ift-blue);
  box-shadow: 0 4px 20px rgba(11, 114, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(11, 114, 255, 0.4);
}

.team-name {
  color: var(--ift-text-main);
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.team-title {
  color: var(--ift-orange);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-bio {
  font-size: clamp(0.85rem, 2.2vw, 0.92rem);
  color: var(--ift-text-main);
  line-height: 1.6;
  text-align: left;
}

.team-bio + .team-bio {
  margin-top: 0.75rem;
}

/* ==========================================================================
   Accessibility & Media Queries
   ========================================================================== */

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
      scroll-behavior: auto !important;
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
    }
  }
  