@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

/* =============================================
   Hero — 3D tilt card
============================================= */
#hero-tilt-scene {
  perspective: 800px;
  perspective-origin: center center;
}
#hero-tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  /* smooth return on mouse leave */
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Subtle glare layer */
#hero-tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#hero-tilt-scene:hover #hero-tilt-card::after {
  opacity: 1;
}

/* =============================================
   Hero — typewriter (loop, no cursor)
============================================= */
/* SplitText wraps each char in a span — keep inline */
#hero-typewriter .char {
  display: inline;
}

/* =============================================
   Hero — animated rings
============================================= */
@keyframes ring-pulse-1 {
  0%, 100% { transform: scale(1);   opacity: 0.2; }
  50%       { transform: scale(1.08); opacity: 0.5; }
}
@keyframes ring-pulse-2 {
  0%, 100% { transform: scale(1);   opacity: 0.4; }
  50%       { transform: scale(1.1); opacity: 0.8; }
}
@keyframes ring-pulse-3 {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%       { transform: scale(1.12); opacity: 1; }
}
.hero-ring-1 { animation: ring-pulse-1 3s ease-in-out infinite; }
.hero-ring-2 { animation: ring-pulse-2 3s ease-in-out infinite 0.4s; }
.hero-ring-3 { animation: ring-pulse-3 3s ease-in-out infinite 0.8s; }

/* =============================================
   Our Companies Section - Modern Glass Cards
============================================= */
#companies {
  background: #f8fafc;
  padding: 6rem 0 7rem;
}

/* Card wrapper — Premium modern card with glass effect */
.company-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.company-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f5a623, #f5a623 25%, #1e3050 25%, #1e3050 50%, #f5a623 50%, #f5a623 75%, #1e3050 75%);
  background-size: 200% 100%;
  transition: background-position 0.5s ease;
  z-index: 20;
}

.company-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%, rgba(30,48,80,0.05) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 15;
}

.company-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 30px 60px rgba(30,48,80,0.15),
    0 0 0 1px rgba(245,166,35,0.3),
    0 0 80px rgba(245,166,35,0.1);
}

.company-card:hover::before {
  background-position: 100% 0;
}

.company-card:hover::after {
  opacity: 1;
}

/* ── Image Container ─────────────────────────── */
.card-img-blind {
  position: relative;
  height: 200px;
  overflow: hidden;
  z-index: 10;
}

.card-img-blind img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  filter: saturate(0.9);
}

.company-card:hover .card-img-blind img {
  transform: scale(1.12);
  filter: saturate(1.1);
}

/* Overlay gradient */
.card-img-blind::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(30,48,80,0.2) 60%,
    rgba(30,48,80,0.5) 100%
  );
  z-index: 1;
}

/* Category badge on image */
.card-category-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(30,48,80,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #f5a623;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(245,166,35,0.3);
}

/* ── Card body ──────────────────────────────── */
.card-body-content {
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fff;
  position: relative;
  z-index: 1;
}

/* Number indicator */
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.card-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e3050;
  opacity: 0.08;
  line-height: 1;
  font-family: 'Merriweather', serif;
  transition: all 0.4s ease;
}
.company-card:hover .card-num {
  color: #f5a623;
  opacity: 0.2;
  transform: scale(1.1);
}
.card-sep {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #f5a623, transparent);
  flex-shrink: 0;
  border-radius: 2px;
}
.card-category {
  font-size: 0.6rem;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Title */
.card-title {
  font-family: 'Merriweather', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1e3050;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  transition: all 0.3s ease;
  position: relative;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5a623;
  transition: width 0.4s ease;
}

.company-card:hover .card-title {
  color: #1e3050;
}

.company-card:hover .card-title::after {
  width: 50px;
}

/* Divider */
.card-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #f5a623, #f5c742);
  margin-bottom: 1rem;
  border-radius: 3px;
  transition: width 0.4s ease;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}
.company-card:hover .card-divider {
  width: 70px;
  box-shadow: 0 4px 15px rgba(245,166,35,0.5);
}

/* Description */
.card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.card-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  color: #64748b;
  background: #f8fafc;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.company-card:hover .card-tag {
  border-color: #f5a623;
  color: #1e3050;
  background: rgba(245,166,35,0.08);
}

/* Visit button - Floating action */
.visit-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e3050 0%, #2a4470 100%);
  color: #fff;
  padding: 14px 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.7rem;
  text-decoration: none;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease,
              background 0.3s ease;
  border-top: 1px solid rgba(245,166,35,0.3);
}

.visit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.3), transparent);
  transition: left 0.5s ease;
}

.company-card:hover .visit-btn {
  transform: translateY(0);
}

.visit-btn:hover {
  background: linear-gradient(135deg, #f5a623 0%, #f5c742 100%);
  color: #1e3050;
  box-shadow: 0 -4px 20px rgba(245,166,35,0.4);
}

.visit-btn:hover::before {
  left: 100%;
}

/* Icon arrow animation */
.visit-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.visit-btn:hover svg {
  transform: translateX(4px);
}

/* ── Mobile Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .company-card {
    min-height: 420px;
  }
  
  .card-img-blind {
    height: 180px;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-body-content {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  #companies {
    padding: 4rem 0 5rem;
  }
  
  .company-card {
    min-height: auto;
    margin-bottom: 1rem;
  }
  
  .card-img-blind {
    height: 160px;
  }
  
  .card-title {
    font-size: 1.15rem;
  }
  
  .card-desc {
    font-size: 0.8rem;
  }
  
  .visit-btn {
    transform: translateY(0);
    position: relative;
    margin-top: 1rem;
  }
}

/* Animation on scroll (for cards appearing) */
.company-card {
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.6s ease forwards;
}

.company-card:nth-child(1) { animation-delay: 0.1s; }
.company-card:nth-child(2) { animation-delay: 0.2s; }
.company-card:nth-child(3) { animation-delay: 0.3s; }
.company-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide company card - add this class to hide */
.company-card-hidden {
  display: none !important;
}

/* Container adjustments for centered cards */
#companies > div > .flex.flex-wrap {
  width: 100%;
}

    /* =============================================
   Team Card — Premium Modern Style
============================================= */
.team-section {
  background: #f8fafc;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  border: none;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f5a623, #1e3050);
  z-index: 20;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.team-card:hover {
  box-shadow: 0 30px 60px rgba(30,48,80,0.15), 0 0 0 1px rgba(245,166,35,0.2);
  transform: translateY(-8px);
}

.team-card:hover::before {
  transform: scaleX(1);
}

/* Photo area */
.team-img-wrap {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: linear-gradient(135deg, #1e3050 0%, #2a4470 100%);
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  filter: grayscale(20%);
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Gradient overlay */
.team-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,48,80,0.8) 0%,
    rgba(30,48,80,0.3) 40%,
    transparent 100%
  );
  z-index: 1;
}

/* Social icons overlay */
.team-social-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.team-card:hover .team-social-overlay {
  transform: translateY(0);
  opacity: 1;
}

.team-social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.team-social-btn:hover {
  background: #f5a623;
  border-color: #f5a623;
  color: #1e3050;
  transform: translateY(-3px);
}

/* Card info */
.team-info {
  padding: 1.5rem 1.75rem 1.75rem;
  border-top: none;
  position: relative;
  background: #fff;
}

.team-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.team-role {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5a623;
  margin-bottom: 0.5rem;
}

.team-name {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3050;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  display: block;
  text-decoration: none;
  position: relative;
}

.team-name:hover {
  color: #f5a623;
}

.team-bio {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.team-name-divider {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #f5a623, #f5c742);
  margin-bottom: 0.75rem;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.team-card:hover .team-name-divider {
  width: 56px;
  box-shadow: 0 2px 8px rgba(245,166,35,0.4);
}

/* Email indicator */
.team-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #a0aec0;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.team-card:hover .team-email {
  color: #1e3050;
}

.team-email svg {
  width: 14px;
  height: 14px;
}

/* Animation on load */
.team-card {
  opacity: 0;
  transform: translateY(30px);
  animation: teamCardFadeIn 0.6s ease forwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes teamCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .team-img-wrap {
    height: 500px;
  }
  
  .team-info {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  
  .team-name {
    font-size: 1.05rem;
  }
}

/* Tablet landscape and iPad Pro 1024 x 1366 */
@media (min-width: 1024px) and (max-width: 1100px) {
  .team-img-wrap {
    height: 500px;
  }
  
  .team-info {
    padding: 1.5rem 1.75rem 1.75rem;
  }
  
  .team-name {
    font-size: 1.2rem;
  }
  
  .team-bio {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Tablets 800px-1024px (810x1080, 800x1280) - 2 columns */
@media (min-width: 800px) and (max-width: 1023px) {
  .team-card {
    margin-bottom: 0.75rem;
  }
  
  .team-img-wrap {
    height: 420px;
  }
  
  .team-info {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  
  .team-role {
    font-size: 0.6rem;
  }
  
  .team-name {
    font-size: 1.1rem;
  }
  
  .team-bio {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  
  .team-name-divider {
    margin-bottom: 0.5rem;
  }
  
  .team-email {
    font-size: 0.7rem;
  }
}

/* Small tablets */
@media (min-width: 640px) and (max-width: 799px) {
  .team-card {
    margin-bottom: 0.5rem;
  }
  
  .team-img-wrap {
    height: 400px;
  }
  
  .team-info {
    padding: 0.875rem 1rem 1rem;
  }
}

@media (max-width: 640px) {
  .team-card {
    margin-bottom: 1rem;
  }
  
  .team-img-wrap {
    height: 420px;
  }
}

/* =============================================
   Contact Form Styles
============================================= */
#contactForm {
  position: relative;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

#contactForm .invalid-feedback {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

#formStatus {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Turnstile container */
.turnstile-container {
  margin: 1rem 0;
  transform: scale(0.85);
  transform-origin: center;
}

/* Disabled button state */
#contactForm button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .turnstile-container {
    transform: scale(0.75);
  }
}