/*
 * Salah El Gehiny — Elementor Home
 * Designed for Hello Elementor + Elementor Free
 */

:root {
  --segh-bg: #0b0909;
  --segh-white: #f2efeb;
  --segh-muted: #a6a19d;
  --segh-line: rgba(242,239,235,.35);
  --segh-max: 1280px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--segh-bg);
  color: var(--segh-white);
  overflow-x: hidden;
}

#segh-home {
  background: var(--segh-bg);
  color: var(--segh-white);
}

#segh-home .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

.segh-container {
  width: min(calc(100% - 120px), var(--segh-max));
  margin-inline: auto;
}

.segh-header {
  position: absolute !important;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: transparent !important;
  padding: 18px 0 !important;
}

.segh-header-inner {
  width: min(calc(100% - 120px), var(--segh-max));
  margin-inline: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.segh-nav-link {
  position: relative;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: 1.4px;
  margin: 0 7px;
  transition: opacity .3s ease;
}

.segh-nav-link:hover { opacity: .65; }

.segh-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s cubic-bezier(.7,0,.2,1);
}

.segh-nav-link:hover::after,
.segh-nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.segh-hero {
  position: relative !important;
  min-height: 720px;
  height: 100svh;
  overflow: hidden !important;
  background: #0b0909;
}

.segh-hero-image,
.segh-hero-image .elementor-widget-container {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.segh-hero-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  transform: scale(1.08);
  will-change: transform;
  transition: transform 2.4s cubic-bezier(.2,.7,.2,1);
}

.segh-hero.loaded .segh-hero-image img { transform: scale(1); }

.segh-hero-overlay {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,5,5,.94) 0%, rgba(7,5,5,.55) 38%, rgba(7,5,5,.08) 74%);
}

.segh-hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,5,5,.78), transparent 48%);
}

.segh-hero-content {
  position: relative !important;
  z-index: 2;
  min-height: 100%;
  width: min(calc(100% - 120px), var(--segh-max));
  margin-inline: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding-top: 20px !important;
}

.segh-hero-title {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(42px, 5vw, 72px) !important;
  line-height: .95 !important;
  font-weight: 300 !important;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(35px);
}

.segh-hero-subtitle {
  color: #fff !important;
  font-size: 11px !important;
  letter-spacing: 5px;
  margin-top: 16px !important;
  opacity: 0;
  transform: translateY(25px);
}

.segh-hero-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 65px !important;
  opacity: 0;
  transform: translateY(25px);
}

.segh-hero-button {
  position: relative;
  min-height: 42px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255,255,255,.55) !important;
  color: #fff !important;
  overflow: hidden;
  font-size: 8px !important;
  letter-spacing: 2px !important;
  background: transparent !important;
  transition: color .45s ease, border-color .45s ease !important;
}

.segh-hero-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-102%);
  transition: transform .55s cubic-bezier(.7,0,.2,1);
}

.segh-hero-button .elementor-button-content-wrapper,
.segh-hero-button .elementor-button-text {
  position: relative;
  z-index: 2;
}

.segh-hero-button:hover {
  color: #0b0909 !important;
}

.segh-hero-button:hover::before { transform: translateX(0); }

.segh-hero-divider {
  width: 100% !important;
  height: 1px !important;
  margin-top: 40px !important;
  background: rgba(255,255,255,.4);
  transform: scaleX(0);
  transform-origin: left;
}

.segh-scroll {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: 7px !important;
  letter-spacing: 1.5px;
  margin-top: 35px !important;
  opacity: 0;
}

.segh-scroll-circle {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  animation: segh-bob 2.2s ease-in-out infinite;
}

@keyframes segh-bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.segh-section {
  background: var(--segh-bg);
}

.segh-about {
  padding: 100px 0 120px !important;
}

.segh-about-grid {
  width: min(calc(100% - 120px), var(--segh-max));
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: 30% 1fr;
  gap: 70px;
  align-items: center !important;
}

.segh-about-image {
  overflow: hidden;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}

.segh-about-image.visible {
  opacity: 1;
  transform: translateY(0);
}

.segh-about-image img {
  width: 100% !important;
  height: auto !important;
  display: block;
  transform: scale(1.08);
  transition: transform 1.5s cubic-bezier(.2,.7,.2,1);
}

.segh-about-image.visible img { transform: scale(1); }

.segh-about-title,
.segh-about-text {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}

.segh-about-title.visible,
.segh-about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.segh-about-title {
  color: var(--segh-white) !important;
  font-size: clamp(35px,4vw,52px) !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.segh-about-divider {
  width: 65px !important;
  height: 1px !important;
  margin: 25px 0 !important;
  background: rgba(255,255,255,.4);
}

.segh-about-text {
  color: #b7b2ae !important;
  font-size: 12px !important;
  line-height: 1.85 !important;
}

.segh-about-text p { margin-bottom: 22px; }

.segh-work,
.segh-updates {
  padding: 70px 0 110px !important;
}

.segh-section-heading {
  width: min(calc(100% - 120px), var(--segh-max));
  margin: 0 auto 25px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}

.segh-section-heading.visible {
  opacity: 1;
  transform: translateY(0);
}

.segh-section-heading h2 {
  color: var(--segh-white) !important;
  font-size: clamp(35px,4vw,52px) !important;
  font-weight: 300 !important;
  margin: 0 !important;
}

.segh-see-all {
  color: #a6a19d !important;
  font-size: 7px !important;
  letter-spacing: 1.5px;
  text-decoration: none !important;
}

.segh-work-grid {
  width: min(calc(100% - 120px), var(--segh-max));
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}

.segh-work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.43;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}

.segh-work-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.segh-work-card:nth-child(2) { transition-delay: .12s; }

.segh-work-card .elementor-widget-image,
.segh-work-card .elementor-widget-image .elementor-widget-container {
  height: 100%;
}

.segh-work-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}

.segh-work-card:hover img { transform: scale(1.07); }

.segh-work-overlay {
  position: absolute !important;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.72));
  transition: background .5s ease;
}

.segh-work-card:hover .segh-work-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.82));
}

.segh-work-title {
  position: absolute !important;
  left: 25px;
  bottom: 45px;
  z-index: 3;
  color: #fff !important;
  font-size: clamp(38px,5vw,62px) !important;
  line-height: .9 !important;
  font-weight: 300 !important;
  margin: 0 !important;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.segh-work-card:hover .segh-work-title { transform: translateY(-7px); }

.segh-work-meta {
  position: absolute !important;
  left: 25px;
  right: 25px;
  bottom: 15px;
  z-index: 3;
  display: flex !important;
  justify-content: space-between !important;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.4);
  color: #fff !important;
  font-size: 7px !important;
  letter-spacing: 1.5px;
}

.segh-updates-grid {
  width: min(calc(100% - 120px), var(--segh-max));
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: 1fr 180px;
  gap: 8px;
}

.segh-main-update {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.05;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}

.segh-main-update.visible {
  opacity: 1;
  transform: translateY(0);
}

.segh-main-update .elementor-widget-image,
.segh-main-update .elementor-widget-image .elementor-widget-container {
  height: 100%;
}

.segh-main-update img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}

.segh-main-update:hover img { transform: scale(1.025); }

.segh-play {
  position: absolute !important;
  left: 50%;
  top: 50%;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px;
  transform: translate(-50%,-50%);
  border: 2px solid #fff !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: transparent !important;
  z-index: 3;
  transition: transform .4s ease, background .4s ease;
}

.segh-main-update:hover .segh-play {
  transform: translate(-50%,-50%) scale(1.1);
}

.segh-social-updates {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
}

.segh-social-card {
  position: relative;
  overflow: hidden;
}

.segh-social-card img {
  width: 100% !important;
  display: block;
  transition: transform .7s ease;
}

.segh-social-card:hover img { transform: scale(1.04); }

.segh-footer {
  background: var(--segh-bg) !important;
  padding: 70px 0 25px !important;
}

.segh-footer-inner {
  width: min(calc(100% - 120px), var(--segh-max));
  margin-inline: auto !important;
}

.segh-footer-top {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
}

.segh-footer-logo {
  color: #fff !important;
  font-size: 12px !important;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
}

.segh-footer-link {
  display: block;
  color: #77716d !important;
  font-size: 7px !important;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  text-decoration: none !important;
  transition: color .3s ease;
}

.segh-footer-link:hover { color: #fff !important; }

.segh-footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 50px 0 20px;
}

.segh-footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  color: #625d59 !important;
  font-size: 7px !important;
  letter-spacing: 1px;
}

.segh-to-top {
  display: inline-flex !important;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .35s ease, border-color .35s ease;
}

.segh-to-top:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.5);
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
  .segh-container,
  .segh-header-inner,
  .segh-hero-content,
  .segh-about-grid,
  .segh-section-heading,
  .segh-work-grid,
  .segh-updates-grid,
  .segh-footer-inner {
    width: calc(100% - 70px);
  }

  .segh-about-grid { gap: 45px; }
  .segh-hero-buttons { gap: 15px; }
}

/* Mobile */
@media (max-width: 767px) {
  .segh-container,
  .segh-header-inner,
  .segh-hero-content,
  .segh-about-grid,
  .segh-section-heading,
  .segh-work-grid,
  .segh-updates-grid,
  .segh-footer-inner {
    width: calc(100% - 40px);
  }

  .segh-header {
    padding: 14px 0 !important;
  }

  .segh-header-inner { justify-content: flex-end !important; }

  .segh-nav-link {
    font-size: 8px !important;
    margin: 0 4px;
    letter-spacing: 1px;
  }

  .segh-hero {
    min-height: 700px;
    height: 100svh;
  }

  .segh-hero-image img {
    object-position: 63% center !important;
  }

  .segh-hero-overlay {
    background: linear-gradient(90deg, rgba(7,5,5,.87), rgba(7,5,5,.25));
  }

  .segh-hero-content {
    padding-top: 35px !important;
  }

  .segh-hero-title { font-size: 37px !important; }
  .segh-hero-subtitle {
    font-size: 9px !important;
    letter-spacing: 3.5px;
  }

  .segh-hero-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 45px !important;
  }

  .segh-hero-button { min-height: 44px; }

  .segh-about { padding: 75px 0 !important; }

  .segh-about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 45px;
  }

  .segh-about-image {
    width: 72% !important;
    margin-inline: auto !important;
  }

  .segh-about-title { font-size: 36px !important; }
  .segh-about-text {
    font-size: 11px !important;
    line-height: 1.75 !important;
  }

  .segh-work,
  .segh-updates { padding: 55px 0 80px !important; }

  .segh-section-heading h2 { font-size: 36px !important; }

  .segh-work-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .segh-work-card { aspect-ratio: 1.2; }

  .segh-work-title {
    left: 20px;
    bottom: 45px;
    font-size: 40px !important;
  }

  .segh-work-meta {
    left: 20px;
    right: 20px;
  }

  .segh-updates-grid {
    grid-template-columns: 1fr;
  }

  .segh-main-update { aspect-ratio: 1.25; }

  .segh-social-updates {
    display: grid !important;
    grid-template-columns: repeat(2,1fr);
  }

  .segh-footer { padding: 55px 0 25px !important; }

  .segh-footer-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 45px;
  }

  .segh-footer-bottom {
    flex-wrap: wrap;
    gap: 15px;
  }
}
