/* index.css - Specific styles for Top Page */

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-color: var(--color-bg);
  color: #FFF;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(30, 58, 138, 0.5) 0%, rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-video iframe {
  width: 100vw;
  height: 56.25vw;
  /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh;
  /* 16:9 aspect ratio relative to viewport height */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #FFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #E2E8F0;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Service Button */
.hero-service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFF !important;
  padding: 1.2rem 3rem;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-service-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.hero-service-btn:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-service-btn:hover::before {
  left: 200%;
}

.hero-service-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-service-btn span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Tech Banner Divider */
.tech-banner {
  background-color: var(--color-surface);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--color-border);
}

.tech-banner-track {
  display: flex;
  width: max-content;
  animation: scrollText 30s linear infinite;
}

.tech-banner-items {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
  align-items: center;
}

.tech-banner-items span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  white-space: nowrap;
}

.tech-banner-items .dot {
  color: var(--color-accent);
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Mission Section */
.custom-shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

.custom-shape-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.custom-shape-divider-top .shape-fill {
  fill: var(--color-surface);
}

.mission-section {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=2000');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #FFF;
  padding: 8rem 0;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.6) 100%);
  z-index: 1;
}

.mission-section .container {
  position: relative;
  z-index: 2;
}

.mission-section .section-title {
  color: #FFF;
}

.mission-section .section-title::after {
  background-color: #FFF;
}

.mission-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 4rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mission-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: #FFF;
}

.mission-icon svg {
  width: 40px;
  height: 40px;
}

.mission-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.mission-text span {
  color: #93C5FD;
  border-bottom: 2px solid rgba(147, 197, 253, 0.5);
  padding-bottom: 2px;
}

.mission-desc {
  color: #E2E8F0;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #FFF;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Company Section */
.company-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .company-info-grid {
    grid-template-columns: 1fr;
  }
}

.company-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
}

.company-info-grid .company-table-wrapper {
  max-width: none;
  margin: 0;
}

.company-map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  height: 100%;
}

.company-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
  display: block;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 30%;
  background-color: var(--color-surface);
  color: var(--color-primary);
  font-weight: 600;
}

/* News Section */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.news-item:hover {
  transform: translateX(10px);
}

.news-date {
  font-weight: 600;
  color: var(--color-text-light);
  width: 120px;
  flex-shrink: 0;
}

.news-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  margin-right: 1.5rem;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  flex-shrink: 0;
}

.news-title {
  flex-grow: 1;
  font-weight: 500;
}

/* Recruit & Contact CTA Sections */
.cta-section {
  text-align: center;
  color: #FFF;
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.cta-title {
  color: #FFF;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta-desc {
  color: #94A3B8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Shared utility */
.text-center {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-bg-video iframe {
    left: 75%;
    transform: translate(-75%, -50%);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .news-date {
    width: auto;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    background-color: transparent;
    padding-bottom: 0.5rem;
  }

  .company-table td {
    padding-top: 0;
  }
}