/* css/pages.css — Master Page Components & Home Hero Styling */

/* ── Hero Slider (Homepage) ──────────────────── */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-dark-alt);
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1), visibility 1.2s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Ken Burns Motion */
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 10s linear;
  will-change: transform;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(10, 33, 41, 0.95) 0%, rgba(10, 33, 41, 0.5) 50%, rgba(10, 33, 41, 0.15) 100%);
}

.hero-content {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  z-index: 10;
}

.hero-text-wrapper {
  max-width: 820px;
  background: rgba(10, 33, 41, 0.45);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--color-accent);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 52px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

/* Staggered Animations for Text */
.hero-slide .subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-size: 0.75rem;
  letter-spacing: 4px;
  border-color: rgba(70,156,118,0.3);
  background: rgba(70,156,118,0.08);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(70, 156, 118, 0.35);
  font-weight: 600;
}

.hero-slide .hero-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
  font-weight: 300;
}

.hero-slide .hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
  max-width: 620px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
  font-weight: 300;
  line-height: 1.65;
}

.hero-slide .hero-actions {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s;
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Floating Specs Bar (Right Bottom) */
.hero-specs-bar {
  position: absolute;
  bottom: 35px;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(10, 33, 41, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  padding: 14px 28px;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hsb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hsb-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.hsb-lbl {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}

.hsb-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
  .hero-specs-bar {
    display: none;
  }
}

/* Active State Triggers Animations */
.hero-slide.active .subtitle,
.hero-slide.active .hero-title,
.hero-slide.active .hero-desc,
.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Modern Slider Progress Controls */
.hero-slider-nav {
  position: absolute;
  bottom: var(--space-12);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-6);
  z-index: 10;
  align-items: center;
}

.hero-progress-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-normal);
}

.hero-progress-item:hover { opacity: 0.85; }
.hero-progress-item.active { opacity: 1; }

.hero-progress-num {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-progress-bar {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: width var(--transition-normal);
}

.hero-progress-item.active .hero-progress-bar {
  width: 80px;
}

.hero-progress-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--color-accent);
  width: 0%;
}

.hero-progress-item.active .hero-progress-fill {
  animation: progress 5s linear forwards;
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #ffffff;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 2px;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--color-accent);
  transform: translateX(-100%);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ── Architectural Stats Section ─────────────── */
.stats-architectural {
  padding: var(--space-24) 0;
  background: var(--color-bg-dark-alt);
  position: relative;
}

.stats-header {
  margin-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stats-grid-unique {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.stat-item-unique {
  position: relative;
  padding: var(--space-12) var(--space-8);
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 420px;
  overflow: hidden;
}

.stat-item-unique:last-child {
  border-right: none;
}

.stat-item-unique::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 0;
  background: var(--brand-gradient);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}

.stat-item-unique:hover::before {
  height: 100%;
  opacity: 0.12;
}

.stat-label-top {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

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

.stat-num-massive {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 5.5vw, 6.5rem);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.35);
  line-height: 0.9;
  margin-bottom: var(--space-6);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
}

.stat-item-unique:hover .stat-num-massive {
  color: #ffffff;
  -webkit-text-stroke: 0px transparent;
  transform: translateY(-12px);
  text-shadow: 0 15px 40px rgba(70, 156, 118, 0.4);
}

.stat-title-new {
  font-size: var(--text-xl);
  color: #ffffff;
  margin-bottom: var(--space-2);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.stat-desc-new {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  font-weight: 300;
}

@media (max-width: 1024px) {
  .stats-grid-unique {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item-unique:nth-child(2) {
    border-right: none;
  }
  .stat-item-unique {
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
}

@media (max-width: 640px) {
  .stats-grid-unique {
    grid-template-columns: 1fr;
  }
  .stat-item-unique {
    border-right: none;
    height: 320px;
  }
}

/* ── Premium About Section ───────────────────── */
.about-premium {
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0;
}

.about-premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  width: 75%;
  height: 85%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: absolute;
  top: 0; left: 0;
  box-shadow: 0 20px 50px rgba(26, 86, 104, 0.12);
  transition: transform var(--transition-slow);
}

.about-images:hover .about-img-main {
  transform: scale(1.02);
}

.about-img-secondary {
  width: 55%;
  height: 55%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: absolute;
  bottom: 0; right: 0;
  box-shadow: 0 30px 60px rgba(26, 86, 104, 0.2);
  border: 8px solid #ffffff;
  transform: translateY(20px);
  transition: transform var(--transition-slow);
}

.about-images:hover .about-img-secondary {
  transform: translateY(0);
}

.about-experience-badge {
  position: absolute;
  top: 15%;
  right: 5%;
  background: #ffffff;
  border-radius: var(--radius-full);
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 15px 35px rgba(26,86,104,0.12);
  border: 1px solid rgba(26, 86, 104, 0.12);
  animation: float 6s ease-in-out infinite;
  z-index: 10;
}

.about-experience-badge h3 {
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin: 0;
  line-height: 1;
  font-family: var(--font-heading);
}

.about-experience-badge p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  margin-top: var(--space-1);
  font-weight: 600;
  color: var(--color-text-muted-light);
}

.about-text-content .subtitle {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 4px;
  display: inline-block;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.about-text-content h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-6);
  color: #0a2129;
}

.about-text-content p {
  font-size: var(--text-lg);
  color: var(--color-text-muted-light);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

@media (max-width: 991px) {
  .about-premium-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .about-images {
    height: 500px;
    order: -1;
  }
  .about-img-main { width: 85%; }
}

/* ── Premium Accordion Gallery (Inspiration) ─── */
.inspiration-section {
  padding: var(--space-24) 0;
}

.inspiration-accordion {
  display: flex;
  height: 60vh;
  min-height: 500px;
  width: 100%;
  gap: var(--space-4);
}

.insp-panel {
  position: relative;
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  background: #0a2129;
  border: 1px solid rgba(255,255,255,0.08);
}

.insp-panel:hover {
  flex: 4;
  border-color: rgba(70,156,118,0.4);
}

.insp-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 10s linear, opacity 0.5s ease;
  opacity: 0.5;
  filter: grayscale(40%);
}

.insp-panel:hover .insp-bg {
  transform: scale(1.08);
  opacity: 1;
  filter: grayscale(0%);
}

.insp-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 33, 41, 0.95) 0%, transparent 100%);
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.insp-panel:hover .insp-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.insp-badge {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.insp-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  font-weight: 400;
}

.insp-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-4);
  max-width: 400px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .inspiration-accordion {
    flex-direction: column;
    height: auto;
  }
  .insp-panel:hover {
    flex: none;
  }
}

/* ── Global Excellence Accordion ────────────── */
.excellence-accordion {
  display: flex;
  height: 500px;
  gap: var(--space-4);
  width: 100%;
}

.exc-panel {
  position: relative;
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(26,86,104,0.08);
}

.exc-panel:hover {
  flex: 3;
  border-color: rgba(70,156,118,0.4);
}

.exc-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 10s linear, filter 0.7s ease;
  filter: grayscale(80%) brightness(0.5);
}

.exc-panel:hover .exc-bg {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(0.85);
}

.exc-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 33, 41, 0.95) 0%, transparent 100%);
  color: #ffffff;
}

.exc-icon {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  transition: transform 0.4s ease;
}

.exc-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  visibility: hidden;
  max-width: 400px;
  height: 0;
  overflow: hidden;
}

.exc-panel:hover .exc-text {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0.1s;
  height: auto;
  margin-top: var(--space-2);
}

.exc-text h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  color: #ffffff;
}

.exc-text p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
  font-weight: 300;
}

@media (max-width: 768px) {
  .excellence-accordion {
    flex-direction: column;
    height: auto;
  }
}