/* ═══════════════════════════════════════════
   index.css — Ana Səhifə (Split Panel)
   Leading Solutions MMC
   ═══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:    #1c2536;
  --bg2:   #232e42;
  --silver:#8a9bb5;
  --silver2:#b0bfd6;
  --white: #e8ecf4;
  --c1:    #3b8fd9;
  --c1l:   #5ea8ef;
  --c2:    #d4782a;
  --c2l:   #e8944a;
  --ease1: cubic-bezier(0.16, 1, 0.3, 1);
  --ease2: cubic-bezier(0.76, 0, 0.24, 1);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: 'Outfit', sans-serif;
  padding-top: env(safe-area-inset-top);
}

@media (max-width: 768px) {
  html, body {
    overflow: auto;
    height: auto;
  }
}

/* ── NOISE ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── SPLIT ── */
.split {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

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

/* ── CENTER LOGO ── */
.center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  animation: logoReveal 1.2s .5s var(--ease1) both;
}

.center-logo-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 37, 54, .95);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 18px rgba(28, 37, 54, .6), 0 0 80px rgba(0, 0, 0, .7);
  margin-bottom: 16px;
  position: relative;
}

.center-logo-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  animation: logoPulse 3s 2s ease-in-out infinite;
}

.center-logo-ring img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  border-radius: 8px;
}

.center-logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: .24em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .9);
  white-space: nowrap;
}

.center-logo-sub {
  font-size: .57rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--silver2);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9);
  margin-top: 4px;
  text-align: center;
}

/* ── DIVIDER ── */
.vdiv {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .09);
  z-index: 10;
  transform: scaleY(0);
  transform-origin: center;
  animation: growY 1.2s .2s var(--ease2) forwards;
}

@media (max-width: 768px) {
  .vdiv { display: none; }

  .split {
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  .panel { flex: 1 !important; }

  /* Premium center badge */
  .center-logo {
    transform: translate(-50%, -50%) scale(0.45);
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    justify-content: center;
    width: 240px;
    height: 240px;
  }

  .center-logo-name,
  .center-logo-sub { display: none; }

  .pbody {
    padding: 0;
    justify-content: center;
  }

  .panel-c .pbody { transform: translateY(-30px); }
  .panel-k .pbody { transform: translateY(30px); }

  /* Hide extra elements on mobile */
  .icon-ring,
  .pnum,
  .ptitle strong,
  .pdesc,
  .mtags,
  .btn { display: none !important; }

  .ptitle {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
    margin-bottom: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
    letter-spacing: .08em;
    text-transform: uppercase;
  }
}

/* ── PANEL ── */
.panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: flex .85s var(--ease2);
}

.panel.active { flex: 1.32; }
.panel.dim    { flex: .68; }
.panel.no-tr  { transition: none !important; }

.panel-c { background: transparent; }
.panel-k { background: transparent; }

/* ── DECO ── */
.deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dl {
  position: absolute;
  opacity: 0;
  animation: fadeIn .01s forwards;
}

.panel-c .dl:nth-child(1) {
  width: 1px; height: 65%; top: 18%; left: 9%;
  background: linear-gradient(to bottom, transparent, rgba(30, 125, 212, .22), transparent);
  animation-delay: 1.1s;
}
.panel-c .dl:nth-child(2) {
  width: 48%; height: 1px; top: 30%; right: 4%;
  background: linear-gradient(to right, transparent, rgba(30, 125, 212, .15), transparent);
  animation-delay: 1.3s;
}
.panel-c .dl:nth-child(3) {
  width: 1px; height: 40%; bottom: 6%; right: 14%;
  background: linear-gradient(to bottom, rgba(30, 125, 212, .18), transparent);
  animation-delay: 1.5s;
}

.dc {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
  animation: fadeIn .01s forwards;
}

.panel-c .dc:nth-child(4) {
  width: 380px; height: 380px;
  border-color: rgba(30, 125, 212, .08);
  bottom: -110px; left: -90px;
  animation-delay: 1.4s;
}
.panel-c .dc:nth-child(5) {
  width: 190px; height: 190px;
  border-color: rgba(30, 125, 212, .06);
  top: 18px; right: 18px;
  animation-delay: 1.7s;
}

.dg {
  position: absolute;
  opacity: 0;
  animation: fadeIn .01s forwards;
}

.panel-c .dg {
  top: 0; right: 0; width: 45%; height: 100%;
  background-image: linear-gradient(rgba(30, 125, 212, .03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(30, 125, 212, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  animation-delay: 1.2s;
}

.panel-k .dl:nth-child(1) {
  width: 1px; height: 58%; top: 20%; right: 11%;
  background: linear-gradient(to bottom, transparent, rgba(200, 96, 26, .22), transparent);
  animation-delay: 1.2s;
}
.panel-k .dl:nth-child(2) {
  width: 44%; height: 1px; bottom: 30%; left: 2%;
  background: linear-gradient(to right, transparent, rgba(200, 96, 26, .15), transparent);
  animation-delay: 1.4s;
}
.panel-k .dl:nth-child(3) {
  width: 1px; height: 36%; top: 7%; left: 22%;
  background: linear-gradient(to bottom, rgba(200, 96, 26, .18), transparent);
  animation-delay: 1.6s;
}
.panel-k .dc:nth-child(4) {
  width: 330px; height: 330px;
  border-color: rgba(200, 96, 26, .08);
  top: -80px; right: -70px;
  animation-delay: 1.4s;
}
.panel-k .dc:nth-child(5) {
  width: 170px; height: 170px;
  border-color: rgba(200, 96, 26, .06);
  bottom: 44px; left: 18px;
  animation-delay: 1.8s;
}
.panel-k .dg {
  bottom: 0; left: 0; width: 42%; height: 55%;
  background-image: linear-gradient(rgba(200, 96, 26, .03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(200, 96, 26, .03) 1px, transparent 1px);
  background-size: 38px 38px;
  animation-delay: 1.3s;
}

.panel-c::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 22% 62%, rgba(59, 143, 217, .15) 0%, transparent 55%);
  pointer-events: none;
  transition: background .5s;
}
.panel-k::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 78% 42%, rgba(212, 120, 42, .12) 0%, transparent 55%);
  pointer-events: none;
  transition: background .5s;
}
.panel-c.active::before {
  background: radial-gradient(ellipse at 22% 62%, rgba(59, 143, 217, .24) 0%, transparent 55%);
}
.panel-k.active::before {
  background: radial-gradient(ellipse at 78% 42%, rgba(212, 120, 42, .2) 0%, transparent 55%);
}

/* ── PANEL BODY ── */
.pbody {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  max-width: 420px;
  opacity: 0;
}

.panel-c .pbody {
  animation: fadeUp .8s 1.6s var(--ease1) forwards;
  margin-right: 20px;
}
.panel-k .pbody {
  animation: fadeUp .8s 1.9s var(--ease1) forwards;
  margin-left: 20px;
}

/* ── ICON RING ── */
.icon-ring {
  width: 82px; height: 82px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
  position: relative;
  transition: transform .5s var(--ease1);
}

.panel.active .icon-ring { transform: scale(1.1) translateY(-5px); }

.panel-c .icon-ring {
  background: rgba(59, 143, 217, .14);
  border: 1px solid rgba(59, 143, 217, .35);
  box-shadow: 0 0 44px rgba(59, 143, 217, .14);
}
.panel-k .icon-ring {
  background: rgba(212, 120, 42, .12);
  border: 1px solid rgba(212, 120, 42, .3);
  box-shadow: 0 0 44px rgba(212, 120, 42, .12);
}
.icon-ring svg { width: 38px; height: 38px; }

.icon-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  opacity: 0;
  animation: pingRing 3.5s 2.8s infinite;
}
.panel-c .icon-ring::after { border: 1px solid rgba(30, 125, 212, .38); }
.panel-k .icon-ring::after { border: 1px solid rgba(200, 96, 26, .36); }

/* ── PNUM ── */
.pnum {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .68rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.panel-c .pnum { color: rgba(94, 168, 239, .85); }
.panel-k .pnum { color: rgba(232, 148, 74, .85); }

/* ── PTITLE ── */
.ptitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.06;
  margin-bottom: 14px;
  color: var(--white);
  text-shadow: 0 3px 24px rgba(0, 0, 0, .95);
}
.ptitle strong { display: block; font-weight: 700; }

/* ── PDESC ── */
.pdesc {
  font-size: .9rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, .9);
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 290px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .95);
}

/* ── MTAGS ── */
.mtags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 28px;
}
.mtag {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: 600;
  border: 1px solid;
  opacity: .8;
  transition: opacity .3s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .95);
}
.panel.active .mtag { opacity: 1; }
.panel-c .mtag { color: var(--c1l); border-color: rgba(59, 143, 217, .35); }
.panel-k .mtag { color: var(--c2l); border-color: rgba(212, 120, 42, .3); }

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: .9rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: gap .3s var(--ease1), box-shadow .35s;
  color: var(--white);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease2);
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { gap: 17px; }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }

.btn-c  { border: 1px solid rgba(59, 143, 217, .5); background: rgba(59, 143, 217, .12); }
.btn-c::before { background: rgba(59, 143, 217, .22); }
.btn-c:hover { box-shadow: 0 8px 36px rgba(59, 143, 217, .25); }

.btn-k  { border: 1px solid rgba(212, 120, 42, .48); background: rgba(212, 120, 42, .1); }
.btn-k::before { background: rgba(212, 120, 42, .2); }
.btn-k:hover { box-shadow: 0 8px 36px rgba(212, 120, 42, .22); }

/* ── HINT ── */
.global-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .18);
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s 3.2s forwards;
}

/* ── 3-COLUMN IMAGE GRID ── */
.panel-imgs {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr;
  z-index: 0;
}

.panel-img-col {
  position: relative;
  overflow: hidden;
}
.panel-img-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .8s var(--ease2);
}
.panel:hover .panel-img-col img { transform: scale(1.04); }

.panel-img-col::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(5, 10, 22, .95);
  z-index: 1;
}
.panel-img-col:last-child::after { display: none; }

/* Dark overlay per panel */
.panel-c .panel-imgs::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(20, 28, 42, .88) 0%, rgba(20, 28, 42, .55) 40%, rgba(20, 28, 42, .55) 60%, rgba(20, 28, 42, .8) 100%),
    linear-gradient(to bottom, rgba(20, 28, 42, .55) 0%, rgba(0, 0, 0, .15) 30%, rgba(0, 0, 0, .15) 65%, rgba(20, 28, 42, .75) 100%);
}
.panel-k .panel-imgs::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to left, rgba(28, 20, 12, .88) 0%, rgba(28, 20, 12, .55) 40%, rgba(28, 20, 12, .55) 60%, rgba(28, 20, 12, .8) 100%),
    linear-gradient(to bottom, rgba(28, 20, 12, .55) 0%, rgba(0, 0, 0, .15) 30%, rgba(0, 0, 0, .15) 65%, rgba(28, 20, 12, .75) 100%);
}

/* ── KEYFRAMES ── */
@keyframes logoReveal {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes logoPulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%       { opacity: .9; transform: scale(1.05); }
}
@keyframes growY {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pingRing {
  0%   { opacity: .5; transform: scale(1); }
  100% { opacity: 0;  transform: scale(2.3); }
}
@keyframes pulseLogo {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.05); }
}
