/* style.css - smooth modal + slider modern */

/* Root variables */
:root {
  --bg: #f5f9ff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #2563eb;
  --info-bg: #f1f5ff;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card: #020617;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --info-bg: #020617;
}

* { box-sizing: border-box; font-family: sans-serif; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
  transition: all 0.3s ease;
}

.card {
  background: var(--card);
  width: 90%;
  max-width: 480px;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  animation: fadeIn 0.8s ease;
}

.toggle { position: absolute; top:18px; right:18px; cursor:pointer; font-size:20px; }
.icon { font-size:60px; margin-bottom:16px; }
h1 { margin:10px 0; font-size:26px; }
p { color: var(--muted); font-size:15px; line-height:1.6; }

.info {
  background:var(--info-bg);
  border-left:5px solid var(--accent);
  padding:14px;
  border-radius:10px;
  margin:22px 0;
  font-size:14px;
}

.info strong { color: var(--accent); }

.btn {
  display:inline-block;
  padding:14px 26px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  border-radius:12px;
  font-weight:600;
  transition:0.3s;
  cursor:pointer;
}

.btn:hover {
  transform:translateY(-2px);
  opacity:0.9;
}

.footer {
  margin-top:24px;
  font-size:12px;
  color: var(--muted);
}

@keyframes fadeIn {
  from {opacity:0; transform:translateY(15px);}
  to {opacity:1; transform:translateY(0);}
}

/* ========================= */
/* MODAL SUPER SMOOTH */
/* ========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1),
              visibility 0.3s cubic-bezier(0.4,0,0.2,1);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background:var(--card);
  color:var(--text);
  margin:5% auto;
  padding:20px;
  width:90%;
  max-width:400px;
  border-radius:14px;
  max-height:95vh;
  overflow-y:auto;

  transform: translateY(-25px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.close {
  float:right;
  font-size:26px;
  cursor:pointer;
}

/* ========================= */
/* Slider */
/* ========================= */

.slider {
  position: relative;
  width:100%;
  overflow:hidden;
  border-radius:14px;
  margin-top:15px;
}

.slides {
  display:flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.slides img {
  min-width:100%;
  flex-shrink:0;
  height:auto;
  max-height:75vh;
  object-fit:contain;
  border-radius:14px;
  display:block;
  margin:0 auto;
}

/* ========================= */
/* Slider nav buttons */
/* ========================= */

.nav {
  position: absolute;
  top: 90%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20%;
  cursor: pointer;
  z-index: 10;
  font-size: 35px;
  font-weight: bold;
  color: #fff;
  backdrop-filter: blur(6px);
  background: rgba(37, 99, 235, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.nav:hover {
  background: rgba(37, 99, 235, 0.8);
  transform: translateY(-50%) scale(1.15);
}

.nav.prev { left: 12px; }
.nav.next { right: 12px; }
.nav.prev::after { content: '\2039'; }
.nav.next::after { content: '\203A'; }
.nav::before { content:none; }

@media (max-width:768px){
  .nav { width:40px; height:40px; font-size:20px; }
}