/* ==================================================
   Official Website Home Page
   ================================================== */

/* Base */
html {
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background-color: var(--color-bg-primary);
}

.hero-video,
.portal-section,
.about-section,
.home-footer {
  scroll-snap-align: start;
}

/* --------------------------------------------------
   Hero: full-screen video background
   -------------------------------------------------- */
.hero-video {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.22) 0%, rgba(10, 22, 40, 0.32) 60%, rgba(10, 22, 40, 0.48) 100%);
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.hero-video-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: var(--font-weight-bold);
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------
   Portal Section: AI / Services split
   -------------------------------------------------- */
.portal-section {
  padding: 0;
  height: 100vh;
  min-height: 600px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.portal-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  text-decoration: none;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.portal-card.portal-ai {
  background-image: url('../images/portal-ai.jpg');
}

.portal-card.portal-services {
  background-image: url('../images/geralt-industry-6564530.jpg');
  background-color: rgba(37, 99, 235, 0.35);
  background-blend-mode: multiply;
}

.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.35) 0%, rgba(10, 22, 40, 0.65) 100%);
  transition: opacity 600ms ease-out;
  z-index: 0;
}

.portal-card:hover::before {
  opacity: 0.75;
}

.portal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  transition: opacity 600ms ease-out;
}

.portal-card:hover::after {
  opacity: 0;
}

.portal-card-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
  text-align: center;
}

.portal-card-title {
  font-size: clamp(32px, 4vw, 48px);
  color: #FFFFFF;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.portal-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: var(--font-weight-medium);
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.portal-card:hover .portal-card-link {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  gap: 16px;
}

/* --------------------------------------------------
   About Section - full screen with background image
   -------------------------------------------------- */
.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  text-align: right;
  padding: 120px 20vw 120px 24px;
}

.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.15) 0%, rgba(10, 22, 40, 0.28) 50%, rgba(10, 22, 40, 0.42) 100%);
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.about-logo {
  width: 60px;
  height: 60px;
}

.about-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.about-title {
  font-size: clamp(36px, 5vw, 56px);
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.about-slogan {
  font-size: clamp(18px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  width: auto;
  max-width: none;
  text-align: right;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.about-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px 14px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: var(--font-weight-medium);
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
  margin-top: 12px;
}

.about-more::after {
  content: '→';
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.about-more:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  gap: 16px;
}

.about-more:hover::after {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .about-section {
    justify-content: flex-end;
    text-align: right;
    padding: 100px 16px;
  }

  .about-overlay {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.25) 0%, rgba(10, 22, 40, 0.45) 100%);
  }

  .about-content {
    align-items: flex-end;
  }

  .about-slogan {
    width: auto;
    max-width: none;
    font-size: clamp(16px, 4vw, 20px);
    white-space: nowrap;
  }
}

/* --------------------------------------------------
   Clients Section
   -------------------------------------------------- */
.clients-section {
  padding: var(--section-gap) 0;
  background-color: #F8FAFC;
}

.clients-section .section-title {
  color: #0A1628;
}

.clients-sprite {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.clients-sprite img {
  max-width: 100%;
  height: auto;
}

