/* Custom styles for FINTRASC website */
/*Color scheme */

/* Universal reset with border-box */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Typewriter cursor animation */
.typewriter-cursor {
  display: inline-block;
  margin-left: 3px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

nav {
  padding: 15px 30px;
}
/* Lato font for navigation items */
nav a {
  font-family: "Lato", sans-serif;
  font-size: large;
  text-transform: uppercase;
}

/* Hero Section Styles */
.hero-section {
  background: url("images/banner.png") center center no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* Desktop: Remove background image when video is shown */
@media (min-width: 768px) {
  .hero-section {
    background: none;
  }
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(31, 78, 121, 0.45) 0%,
    rgba(45, 127, 184, 0.4) 100%
  );
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-image {
  animation: fadeInRight 1s ease-out 0.6s both;
}

.btn-primary {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.white-square {
  margin-top: -7rem;
}

/* Desktop Video Hero Styles */
.hero-video-container {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video-content {
  max-width: 1100px;
  padding: 3rem 2rem;
}

.hero-video-title {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-video-subtitle {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-video-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-secondary-video {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-secondary-video:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* HERO SECTION RESTYLES (from hero.png inspiration) */
.hero-title {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  color: #14213d;
  text-shadow:
    0 2px 8px rgba(20, 33, 61, 0.1),
    0 1px 0 #e5e7eb;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: #334155;
  text-shadow: 0 1px 4px rgba(20, 33, 61, 0.08);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 41, 55, 0.12);
  display: inline-block;
}

.btn-primary {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #1f4b76;
  color: #f8fafc !important; /* slate-50 */
  border: none;
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.12);
  letter-spacing: 1px;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-primary:hover {
  background: #334155; /* slate-700 */
  color: #f8fafc;
}

.btn-secondary {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #334155; /* slate-700 */
  background: #e2e8f0; /* slate-200 */
  border: 2px solid #64748b; /* slate-500 */
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.1);
  backdrop-filter: blur(10px);
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-secondary:hover {
  background: #64748b; /* slate-500 */
  color: #f8fafc;
}

/* Expertise Section V2 - Modern Bold Design */
.expertise-section-v2 {
  background: linear-gradient(180deg, #1f4e79 0%, #202f55 100%);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.expertise-section-v2::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.expertise-container-v2 {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.expertise-header {
  text-align: center;
  margin-bottom: 4rem;
}

.expertise-label {
  display: inline-block;
  font-family: "Lato", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8dafc4;
  margin-bottom: 1rem;
  padding: 0.5rem 1.25rem;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.expertise-title-v2 {
  font-family: "Lato", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
}

.expertise-subtitle {
  font-family: "Lato", sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.expertise-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.expertise-card-v2 {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.9) 100%
  );
  border-radius: 20px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.expertise-card-v2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1f4e79 0%, #3879ce 50%, #60a5fa 100%);
}

.expertise-card-v2:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card-number {
  font-family: "Lato", sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(31, 78, 121, 0.08);
  position: absolute;
  top: -1rem;
  right: 1.5rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

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

.card-content-v2 h3 {
  font-family: "Lato", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0a1628;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.card-content-v2 p {
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  font-weight: 400;
  margin-bottom: 2rem;
}

.card-icon-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a1628 0%, #1f4e79 100%);
  color: #ffffff;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.4);
  transition: transform 0.3s ease;
}

.expertise-card-v2:hover .card-icon-v2 {
  transform: scale(1.1) rotate(5deg);
}

/* Why Specialist Translation Matters Section */
.translation-matters-section {
  position: relative;
  overflow: hidden;
}

.translation-container {
  display: flex;
  flex-direction: row;
  min-height: 600px;
  max-width: 100%;
}

.translation-image-half {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.translation-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.translation-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 78, 121, 0.75) 0%,
    rgba(45, 127, 184, 0.65) 100%
  );
  z-index: 1;
}

.translation-text-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f1f7 100%);
  padding: 4rem 3rem;
}

.translation-content {
  max-width: 550px;
}

.translation-title {
  font-family: "Lato", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2d3d;
  margin-bottom: 2rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.translation-text p {
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a5a6a;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.translation-text p:last-child {
  margin-bottom: 0;
  font-weight: 400;
  color: #334155;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  /* Expertise Section V2 Mobile */
  .expertise-section-v2 {
    padding: 4rem 1rem;
  }

  .expertise-title-v2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .expertise-subtitle {
    font-size: 1rem;
  }

  .expertise-header {
    margin-bottom: 3rem;
  }

  .expertise-grid-v2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .expertise-card-v2 {
    padding: 2.5rem 2rem;
  }

  .card-number {
    font-size: 4rem;
    right: 1rem;
  }

  .card-content-v2 h3 {
    font-size: 1.25rem;
  }

  .card-content-v2 p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Translation section mobile */
  .translation-container {
    flex-direction: column;
    min-height: auto;
  }

  .translation-image-half {
    min-height: 300px;
  }

  .translation-text-half {
    padding: 3rem 1.5rem;
  }

  .translation-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .translation-text p {
    font-size: 1rem;
  }
}

/* Additional custom styles can be added here */

/* =============================================
   Floating Label Form Styles (contact.php)
   ============================================= */

.floating-label-group {
  position: relative;
  margin-bottom: 0;
}

.floating-input,
.floating-textarea {
  width: 100%;
  padding: 1.375rem 1rem 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: "Lato", sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  appearance: none;
}

.floating-textarea {
  resize: vertical;
  min-height: 140px;
  padding-top: 1.6rem;
}

.floating-input:focus,
.floating-textarea:focus {
  border-color: #1f4b76;
  box-shadow: 0 0 0 3px rgba(31, 75, 118, 0.12);
}

.floating-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #9ca3af;
  pointer-events: none;
  transition:
    top 0.18s ease,
    transform 0.18s ease,
    font-size 0.18s ease,
    color 0.18s ease;
  font-family: "Lato", sans-serif;
  background: transparent;
}

/* Textarea label starts near top instead of centered */
.floating-label-group--textarea .floating-label {
  top: 1.15rem;
  transform: none;
}

/* Float the label up when input is focused OR has a value */
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: 0.45rem;
  transform: none;
  font-size: 0.72rem;
  color: #1f4b76;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Textarea floated label */
.floating-textarea:focus ~ .floating-label,
.floating-textarea:not(:placeholder-shown) ~ .floating-label {
  top: 0.45rem;
  transform: none;
  font-size: 0.72rem;
  color: #1f4b76;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Submit button brand style */
.btn-contact-submit {
  background: linear-gradient(135deg, #1f4b76 0%, #2d7fb8 100%);
  color: #fff;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    box-shadow 0.2s ease;
  letter-spacing: 0.03em;
}

.btn-contact-submit:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(31, 75, 118, 0.35);
}

/* Alert banners */
.alert-success {
  background-color: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}
