/* ============================================
   HOME Page Styles — Premium Redesign v2.0
   ============================================ */

/* === Intro Splash Screen === */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #0c1524 0%, var(--color-primary-deeper) 25%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

/* Subtle radial glow behind logo */
.intro-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 50% 45%, rgba(197,164,109,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.intro-overlay.exit {
  transform: translateY(-100%);
}

.intro-overlay.hidden {
  display: none;
}

.intro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo animation */
.intro-logo {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  animation: introLogoIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.intro-logo-img {
  width: auto;
  height: 180px;
  filter: brightness(0) invert(1);
}

@keyframes introLogoIn {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Text & divider */
.intro-text {
  opacity: 0;
  transform: translateY(16px);
  animation: introTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}

@keyframes introTextIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.intro-divider {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: 28px auto 20px;
  border-radius: 2px;
  animation: introDividerExpand 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

@keyframes introDividerExpand {
  0% { width: 0; }
  100% { width: 56px; }
}

.intro-tagline {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 4px;
  font-family: var(--font-primary);
}

/* Body no-scroll during intro */
body.intro-active {
  overflow: hidden;
}

/* Responsive intro */
@media (max-width: 768px) {
  .intro-logo-img {
    height: 150px;
  }
  .intro-tagline {
    font-size: 1rem;
    letter-spacing: 3px;
  }
}

@media (max-width: 480px) {
  .intro-logo-img {
    height: 120px;
  }
  .intro-tagline {
    font-size: 0.875rem;
    letter-spacing: 2px;
  }
}

/* === Hero Section — Pure Navy Gradient === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0c1524 0%, var(--color-primary-deeper) 20%, var(--color-primary) 50%, var(--color-primary-light) 100%);
}

/* Decorative radial glows */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 8% 35%, rgba(197,164,109,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 600px 600px at 75% 15%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse 500px 800px at 90% 75%, rgba(197,164,109,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle geometric pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(150deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 80px 140px;
  pointer-events: none;
  z-index: 1;
}

/* Hero background — no image, gradient only */
.hero-bg {
  display: none;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
}

.hero-text {
  max-width: 720px;
}

/* Hero Logo */
.hero-logo {
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: heroLogoFade 1s ease 0.3s forwards;
}

.hero-logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 30px rgba(197,164,109,0.2));
}

@keyframes heroLogoFade {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin-bottom: var(--space-xl);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

.hero-desc strong {
  color: var(--color-gold-light);
  font-weight: 600;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  font-weight: 500;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(197,164,109,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* Decorative gold line at hero bottom */
.hero-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.2;
  z-index: 3;
}

/* === Services Grid === */
.services-grid {
  gap: var(--space-lg);
}

.service-item {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border-light);
  background: #fff;
  position: relative;
}

.service-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: width var(--transition-normal);
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-item:hover::after {
  width: 60%;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 20px;
  transition: all var(--transition-normal);
}

.service-item:hover .service-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(36,58,94,0.25);
}

.service-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.service-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* === Differentiation Grid === */
.diff-grid {
  gap: var(--space-xl);
}

.diff-card {
  padding: var(--space-2xl);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.diff-card:hover {
  border-color: rgba(197,164,109,0.2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-4px);
}

.diff-card:hover::before {
  transform: scaleX(1);
}

.diff-number {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
  letter-spacing: 2px;
}

.diff-card h4 {
  font-size: var(--font-size-lg);
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.diff-card p {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* === About Preview === */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-preview-text p {
  font-size: var(--font-size-md);
  line-height: 1.95;
}

.about-preview-text p strong {
  color: var(--color-primary);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.value-item:hover {
  background: var(--color-bg-light);
}

.value-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 16px;
}

.value-item h5 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.value-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(160deg, var(--color-primary-deeper) 0%, var(--color-primary) 40%, var(--color-primary-light) 100%);
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(197,164,109,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 80% 50%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: var(--font-size-2xl);
  color: #fff;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-2xl);
  line-height: 1.85;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 60px) 0 80px;
  }
  
  .hero-scroll {
    display: none;
  }
  
  .hero-logo-img {
    height: 40px;
    width: auto;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-md) !important;
  }
  
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
  
  .diff-grid {
    grid-template-columns: 1fr !important;
  }
  
  .cta-content h2 {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    height: 32px;
    width: auto;
  }
  
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}
