:root{
  --c-cream:#f3e5a5;
  --c-sand:#e1c6a4;
  --c-sky:#b5c9e0;
  --c-sky-mid:#89aad4;
  --c-blue:#4f8fbd;
  --c-blue-deep:#3f6b94;
  --c-navy:#1c3f5a;
  --c-orange:#db7a1f;
  --c-orange-deep:#c65e1f;
  --c-wine:#7b1b1b;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:
    radial-gradient(circle at top, var(--c-blue-deep) 0, var(--c-navy) 40%, #050811 100%);
  color:#fff;
}

/* MAIN WRAPPER */
.shell{
  width:100%;
  max-width:1160px;
  min-height:480px;
  border-radius:22px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.25fr 0.9fr;
  background:#020813;
  box-shadow:0 32px 80px rgba(0,0,0,0.75);
}

/* LEFT SIDE – HERO WITH IMAGE */
.hero{ position:relative; overflow:hidden; }

.hero-bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(135deg,rgba(28,63,90,0.96),rgba(63,107,148,0.94)),
    url("/assets/media/timeline-bg.jpg");
  background-size:cover;
  background-position:center;
  filter:saturate(1.05);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left,rgba(243,229,165,0.55),transparent 55%),
    radial-gradient(circle at bottom right,rgba(219,122,31,0.35),transparent 55%);
  mix-blend-mode:screen;
  opacity:0.9;
}

.hero-content{
  position:relative;
  z-index:1;
  height:100%;
  padding:32px 38px 26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

/* Top brand row */
.brand-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  gap:8px;
  flex-wrap:wrap;
}

.brand-badge{
  font-size:11px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.5);
  background:rgba(5,12,30,0.45);
  backdrop-filter:blur(8px);
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.brand-badge span{ color:var(--c-sky); font-weight:600; }
.brand-mini{ font-size:11px; opacity:0.78; }

/* Main copy */
.hero-main{ margin-top:10px; max-width:430px; }

.hero-title{
  font-size:32px;
  line-height:1.2;
  font-weight:700;
  text-shadow:0 6px 20px rgba(0,0,0,0.8);
}

.hero-title span{ color:var(--c-cream); }

.hero-slogan{
  font-size:16px;
  margin-top:8px;
  color:#f7fafc;
  text-shadow:0 4px 16px rgba(0,0,0,0.7);
}

/* 3 APP BUBBLES */
.hero-bubbles{
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.bubble{
  flex:1 1 90px;
  max-width:120px;
  padding:10px 8px 12px;
  border-radius:18px;
  background:rgba(5,19,46,0.92);
  border:1px solid rgba(181,201,224,0.9);
  box-shadow:0 10px 26px rgba(0,0,0,0.7);
  text-align:center;
}

.bubble-img-wrap{
  width:64px;
  height:64px;
  margin:0 auto 6px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,0.75);
  border:1px solid rgba(226,238,255,0.9);
  background:#020922;
}

.bubble-img{ width:100%; height:100%; object-fit:cover; display:block; }
.bubble-label{ font-size:11px; text-transform:uppercase; letter-spacing:0.12em; }
.bubble-caption{ font-size:10px; margin-top:2px; opacity:0.85; }

/* Bottom tags */
.hero-bottom{
  margin-top:22px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:11px;
}

.tag-pill{
  padding:7px 12px;
  border-radius:999px;
  background:rgba(3,17,38,0.92);
  border:1px solid rgba(181,201,224,0.85);
  color:#E1ECFF;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.tag-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--c-orange),var(--c-orange-deep));
  box-shadow:0 0 8px rgba(219,122,31,0.9);
}

/* RIGHT SIDE – ENTRY CARD */
.side{
  background:radial-gradient(circle at top,var(--c-blue-deep),#050814);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 22px;
}

.entry-card{
  width:100%;
  max-width:320px;
  background:linear-gradient(145deg,rgba(12,31,66,0.96),rgba(11,29,60,0.99));
  border-radius:20px;
  padding:26px 24px 22px;
  border:1px solid rgba(181,201,224,0.65);
  box-shadow:0 18px 40px rgba(0,0,0,0.7);
  backdrop-filter:blur(18px);
}

.entry-tag{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.18em;
  color:var(--c-sky);
  margin-bottom:8px;
}

.entry-title{ font-size:20px; font-weight:600; margin-bottom:4px; }
.entry-sub{ font-size:12px; color:#C5D4F1; margin-bottom:18px; }
.entry-sub span{ color:var(--c-cream); font-weight:500; }

.btn{
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:10px 18px;
  font-size:13px;
  font-weight:500;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:all 0.18s ease;
}

.btn-primary{
  background:linear-gradient(135deg,var(--c-orange),var(--c-orange-deep));
  color:#FDFEFF;
  width:100%;
  margin-bottom:10px;
  box-shadow:0 8px 22px rgba(198,94,31,0.65);
}

.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 26px rgba(198,94,31,0.85);
}

.btn-secondary{
  background:transparent;
  color:#E5ECFF;
  border:1px solid rgba(181,201,224,0.6);
  width:100%;
}

.btn-secondary:hover{ background:rgba(255,255,255,0.04); }

.entry-foot{
  margin-top:12px;
  font-size:11px;
  color:#AEBFE4;
}

/* =========================
   MODAL + FLIP (ÇOK KRİTİK)
   ========================= */
.modal-overlay{
  position:fixed;     /* body flex etkisini kırar */
  inset:0;
  background:rgba(3,7,18,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(10px);
  z-index:9999;
}

.modal-overlay.show{ display:flex; }

.modal{
  width:100%;
  max-width:380px;
  perspective:1200px;
  padding:12px;
}

.flip-card{
  position:relative;
  width:100%;
  height:340px;
  transform-style:preserve-3d;
  transition:transform 0.6s ease;
}

.flip-card.flipped{ transform:rotateY(180deg); }

.modal-box{
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top,var(--c-blue-deep),#050b18);
  border-radius:18px;
  padding:26px 22px 20px;
  border:1px solid rgba(181,201,224,0.9);
  box-shadow:0 26px 60px rgba(0,0,0,0.9);
  backface-visibility:hidden;
  display:flex;
  flex-direction:column;
}

.modal-box.back{ transform:rotateY(180deg); }

.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:16px;
}

.modal-title{
  font-size:20px;
  font-weight:600;
  margin-bottom:2px;
}

.modal-sub{
  font-size:12px;
  color:#C0D3FF;
}

.close-btn{
  width:26px;
  height:26px;
  border-radius:999px;
  border:none;
  background:rgba(7,16,36,0.9);
  color:#E5ECFF;
  cursor:pointer;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.15s ease;
}

.close-btn:hover{ background:rgba(15,32,70,0.98); }

.modal-body{ flex:1; }

.form-group{
  margin-bottom:14px;
  font-size:13px;
}

.modal-box label{
  display:block;
  margin-bottom:5px;
  color:#E7EDFF;
}

/* input'ları sadece modal içinde scope'ladım (diğer yerleri bozmasın) */
.modal-box input{
  width:100%;
  padding:9px 10px;
  border-radius:9px;
  border:1px solid rgba(187,206,255,0.7);
  background:#0A1C3D;
  color:#F9FBFF;
  font-size:13px;
  outline:none;
  transition:border 0.18s ease,box-shadow 0.18s ease,background 0.18s ease;
}

.modal-box input:focus{
  border-color:var(--c-sky-mid);
  box-shadow:0 0 0 1px rgba(137,170,212,0.9);
  background:#0d234c;
}

.modal-btn{
  width:100%;
  margin-top:6px;
  background:linear-gradient(135deg,var(--c-orange),var(--c-orange-deep));
  color:#fff;
  border:none;
  border-radius:999px;
  padding:10px 0;
  font-weight:500;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(198,94,31,0.6);
  transition:0.18s ease;
}

.modal-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 26px rgba(198,94,31,0.85);
}

.modal-footer{
  margin-top:10px;
  font-size:12px;
  color:#C4D2F5;
}

.modal-footer button{
  background:none;
  border:none;
  color:var(--c-sky);
  cursor:pointer;
  font-size:12px;
}

/* Responsive */
@media(max-width:960px){
  .shell{ grid-template-columns:1fr; min-height:auto; }
  .hero-content{ padding:26px 22px 24px; }
  .side{ padding:20px 18px 22px; }
  .entry-card{ margin:0 auto; }
  .hero-bubbles{ max-width:360px; }
}

@media(max-width:640px){
  body{ padding:12px; }
  .shell{ border-radius:16px; }
  .hero-content{ padding:20px 16px 22px; }
  .hero-title{ font-size:24px; }
  .hero-slogan{ font-size:14px; }
  .entry-card{ padding:22px 18px 18px; }
  .brand-row{ flex-direction:column; align-items:flex-start; gap:6px; }
}

/* Alerts */
.alert{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(181,201,224,0.55);
  background:rgba(5,19,46,0.65);
  color:#EAF0FF;
  font-size:12px;
}
.alert.error{ border-color: rgba(219,122,31,0.85); }


/* FOOTER CODEMYO SIGNATURE */
.footer-codemyo{
  font-size:11px;
  color:rgba(181,201,224,0.75);
  white-space:nowrap;
}

.footer-codemyo a{
  color:#b5c9e0;
  font-weight:600;
  margin-left:4px;
  text-decoration:none;
}

.footer-codemyo a:hover{
  color:#f3e5a5;
  text-decoration:underline;
}
