 
    /* Smooth transition for option buttons */
    .opt {
      transition: all 0.35s ease-in-out;
    }
    .opt.selected {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    .opt:hover {
      transform: scale(1.03);
    }
    
    /* Convert & Clear buttons animation */
    .convert-btn, .clear-btn {
      transition: all 0.3s ease-in-out;
      border-radius: 8px;
      font-weight: 600;
      color: white;
      padding: 10px 18px;
      border: none;
      cursor: pointer;
    }
    
    /* Convert button (dark green theme) */
    .convert-btn {
      background: linear-gradient(135deg, #2b8a3e, #1d6b2d);
    }
    .convert-btn:hover {
      background: linear-gradient(135deg, #34a94b, #238d38);
      transform: scale(1.05);
    }
    
    /* Clear All button (red theme) */
    .clear-btn {
      background: linear-gradient(135deg, #d62828, #b91c1c);
    }
    .clear-btn:hover {
      background: linear-gradient(135deg, #f03e3e, #c92424);
      transform: scale(1.05);
    }
    
    /* Optional glow when clicked */
    .convert-btn:active, .clear-btn:active {
      transform: scale(0.97);
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    :root{
      --page-bg: linear-gradient(to bottom, #00cc99 20%, #0099ff 100%);
      --card-bg: #ffffff;
      --muted: #6b7280;
      --accent1: #00cc99;
      --accent2: #0099ff;
      --radius: 14px;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
      background:var(--page-bg);
      background-attachment: fixed;
      min-height:100vh;
      display:flex;
      align-items:flex-start;
      justify-content:center;
      padding:40px 20px;
      color:#111;
    }

    .container{width:100%;max-width:1000px}

    /* card */
    .card{
      background:var(--card-bg);
      border-radius:var(--radius);
      box-shadow:0 12px 30px rgba(2,6,23,0.12);
      padding:28px;
      position:relative;
      margin:0 auto 40px;
      overflow:visible;
    }
    .card::before{
      content:"";
      position:absolute;
      top:10px;left:10px;right:10px;bottom:10px;
      border-radius:calc(var(--radius) - 2px);
      box-shadow: inset 0 0 20px rgba(0,0,0,0.06), inset 0 0 6px rgba(255,255,255,0.45);
      pointer-events:none; z-index:0;
    }
   
    .card > *{position:relative;z-index:1}

    .brand{display:flex;align-items:center;gap:14px}
    .logo{font-weight:800;font-size:22px}
    .logo span{background:linear-gradient(90deg,var(--accent1),var(--accent2));-webkit-background-clip:text;color:transparent}
    .lead{color:var(--muted);margin-top:6px}

    .tabs{display:flex;gap:8px;border-radius:10px;overflow:hidden;margin-top:14px}
    .tab{padding:8px 14px;cursor:pointer;background:rgba(0,0,0,0.03);border-radius:8px;font-weight:700}
    .tab.active{background:linear-gradient(90deg,var(--accent1),var(--accent2));color:#fff}
/* === Animated Tab Switch === */
.tabs {
  display: flex;
  gap: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
  position: relative;
}

.tab {
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  color: #333;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab.active {
  background: linear-gradient(90deg, #00cc99, #0099ff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

/* Add smooth underline indicator */
.tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.tab.active::after {
  width: 80%;
  opacity: 1;
}

/* Panel fade transition */
.panel {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease-in-out;
}
.panel.active {
  opacity: 1;
  max-height: 4000px;
  transform: translateY(0);
}
.tab.active {
  box-shadow: 0 0 10px rgba(0, 204, 153, 0.4), 0 0 15px rgba(0, 153, 255, 0.3);
}

    /* panel fade */
    .panel{opacity:0;max-height:0;overflow:hidden;transform:translateY(6px);transition:all .28s ease}
    .panel.active{opacity:1;max-height:4000px;transform:none}

    .notice-box{background:#f0fdf4;border-left:4px solid var(--accent1);padding:12px;border-radius:10px;margin-top:10px;color:#065f46;font-size:14px}
    .lead.note{font-weight:600}

    /* upload areas */
    .upload-area{margin-top:18px;border-radius:12px;border:1px solid rgba(0,0,0,0.06);padding:18px;background:#fff;display:flex;flex-direction:column;gap:12px}
    .drag-hint{display:flex;justify-content:space-between;align-items:center}
    input[type=file]{display:none}

    .opts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
    .opt{padding:8px 12px;border-radius:8px;border:1px solid #e6e9ee;background:#fbfdff;cursor:pointer}
    /* Smooth gradient animation for selected options */
    .opt {
      transition: all 0.35s ease-in-out;
    }
    
    /* When user switches between PNG/JPG/PDF, the background gradient fades smoothly */
    .opt.selected {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Optional hover enhancement */
    .opt:hover {
      transform: scale(1.03);
    }

    .opt.selected{border-color:transparent;background:linear-gradient(90deg,var(--accent1),var(--accent2));color:#fff;box-shadow:0 6px 18px rgba(0,0,0,0.08)}

    .row{display:flex;gap:10px;align-items:center}
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px 28px; /* increased size */
        font-size: 17px; /* larger text */
        border-radius: 12px;
        border: none;
        background: linear-gradient(90deg, var(--accent1), var(--accent2));
        color: white;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    }

    /* Main convert/download buttons */
    .btn-main {
      background: linear-gradient(90deg, #007a3d, #00b359);
      color: #fff;
    }
    
    /* Clear button (red) */
    .btn-clear {
      background: linear-gradient(90deg, #ff4d4d, #ff0000);
      color: #fff;
    }
    .btn-clear:hover,
    .btn-main:hover {
      opacity: 0.9;
    }
    
    /* Format option colors */
    .opt[data-format="png"].selected {
      background: linear-gradient(90deg, #ff9800, #ffb84d); /* orange */
      color: #fff;
    }
    
    .opt[data-format="jpg"].selected {
      background: linear-gradient(90deg, #8e24aa, #ba68c8); /* purple */
      color: #fff;
    }
    
    .opt[data-size="a4"].selected {
      background: linear-gradient(90deg, #795548, #a1887f); /* brown */
      color: #fff;
    }
    
    .opt[data-size="letter"].selected {
      background: linear-gradient(90deg, #607d8b, #90a4ae); /* blue-gray */
      color: #fff;
    }

    .progress{width:100%;height:12px;background:#eef2ff;border-radius:8px;overflow:hidden;margin-top:10px}
    .progress>i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent1),var(--accent2));transition:width .2s ease}

    .note{margin-top:6px;text-align:center;font-size:13px;color:#374151}

    .success-tick{width:40px;height:40px;border-radius:50%;border:3px solid var(--accent1);position:relative;margin:10px auto;animation:tickPop .36s ease}
    .success-tick::after{content:"";position:absolute;left:10px;top:6px;width:10px;height:18px;border:solid var(--accent1);border-width:0 3px 3px 0;transform:rotate(45deg)}
    @keyframes tickPop{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}

    /* image list for reorder (Image -> PDF) */
    .thumb-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
    .thumb{
      width:120px;height:120px;border-radius:8px;border:1px solid #e6e9ee;background:#fff;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:grab;
    }
    .thumb img{max-width:100%;max-height:68px;display:block;margin-bottom:6px}
    .thumb .label{font-size:12px;color:var(--muted);text-align:center;word-break:break-word}

    .site-footer{max-width:980px;margin:0 auto;text-align:center;color:var(--muted);font-size:13px;padding:18px 12px;border-radius:10px;background:rgba(255,255,255,0.9);box-shadow:0 6px 20px rgba(2,6,23,0.06)}
    .developer-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }

   .dev-photo {
        width: 70px;              /* 🔹 larger circle */
        height: 70px;             /* keep equal width/height */
        border-radius: 50%;
        object-fit: cover;
        object-position: top;     /* ✅ show more of your face (top area) */
        border: 3px solid var(--accent1);
        box-shadow: 0 4px 14px rgba(0,0,0,0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .dev-photo:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    }

        /* Developer popup styling */
    .dev-popup {
        display: none;
        position: fixed;
        z-index: 999;
        inset: 0;
        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(4px);
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease;
    }

    .dev-popup-card {
        background: #fff;
        border-radius: 18px;
        padding: 28px;
        text-align: center;
        max-width: 420px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.2);
        position: relative;
        animation: slideUp 0.4s ease;
    }

    .dev-popup-photo {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        object-fit: cover;
        object-position: top;
        border: 3px solid var(--accent1);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        margin-bottom: 12px;
    }

    .dev-popup h2 {
        margin: 10px 0 6px;
        color: rgb(238, 183, 34);
        -webkit-background-clip: text;
    }

    .dev-popup p {
        color: #444;
        line-height: 1.6;
        font-size: 15px;
    }

    .dev-close {
        position: absolute;
        top: 10px;
        right: 16px;
        font-size: 22px;
        color: #555;
        cursor: pointer;
        transition: color 0.3s ease;
    }
    .dev-close:hover { color: #000; }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideUp {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }

    }

        /* Gradient glow border for popup card */
    .dev-popup-card {
        background: #fff;
        border-radius: 18px;
        padding: 28px;
        text-align: center;
        max-width: 420px;
        position: relative;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        z-index: 1;
    }

    .dev-popup-card::before {
        content: "";
        position: absolute;
        inset: -3px;
        background: linear-gradient(135deg, var(--accent1), var(--accent2), #00e0ff);
        border-radius: 20px;
        z-index: -1;
        animation: glowMove 3s linear infinite;
        background-size: 300% 300%;
        filter: blur(2px);
    }

    @keyframes glowMove {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }


    @keyframes popupFadeGlow {
        from { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 rgba(0,0,0,0); }
        to { transform: scale(1); opacity: 1; box-shadow: 0 0 25px rgba(0,0,0,0.15); }
   }

    .dev-popup-card {
        animation: popupFadeGlow 0.5s ease;
    }




    .progress i {
        transition: width 0.4s ease, opacity 0.3s ease;
    }

    .progress i:empty {
        opacity: 0;
    }

    @media (max-width:720px){
      .thumb{width:100px;height:100px}
      .card{padding:18px}
    }

        /* 🧾 Blog Article Page Style */
    .blog-article {
    background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
        padding: 32px;
        margin: 40px auto;
        max-width: 850px;
        line-height: 1.7;
        color: #222;
    }

    .blog-article h1 {
        font-size: 28px;
        margin-bottom: 14px;
        background: linear-gradient(90deg, var(--accent1), var(--accent2));
        -webkit-background-clip: text;
        color: transparent;
    }

    .blog-article h2 {
        font-size: 22px;
        margin-top: 22px;
        color: #111;
    }

    .blog-article p {
        font-size: 16px;
        color: #444;
        margin-bottom: 16px;
    }

    .blog-article ul {
        padding-left: 20px;
        margin: 12px 0;
    }

    .blog-article li {
        margin-bottom: 8px;
        color: #333;
    }

    .blog-article img {
        max-width: 100%;
        border-radius: 10px;
        margin: 18px 0;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

    /* Highlight boxes inside articles */
    .tip-box {
        background: #f0fdf4;
        border-left: 4px solid var(--accent1);
        padding: 14px 16px;
        border-radius: 10px;
        color: #065f46;
        font-size: 15px;
        margin: 16px 0;
    }

    /* Footer consistency */
        .blog-footer {
        text-align: center;
        font-size: 14px;
        color: var(--muted);
        margin-top: 40px;
    }

    .blog-footer a {
        color: var(--accent2);
        text-decoration: none;
    }

    .blog-footer a:hover {
        text-decoration: underline;
    }
/* --- Modern Footer Layout --- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  color: var(--muted);
}

/* Left side links */
.footer-left a {
  color: var(--accent2);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px; /* 🔹 larger, more visible */
  margin: 0 4px;
}

.footer-left a:hover {
  color: var(--accent1);
}

/* Right side developer info */
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 40px;
}

.dev-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--accent1);
  object-fit: cover;
  object-position: top;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dev-info p {
  margin: 0;
  line-height: 1.4;
  color: #333;
}

.dev-info strong {
  color: #000;
  font-weight: 700;
}
/* === Shared Button Layout for Converter Panels === */
.button-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.button-row .btn {
  flex: 1;
  max-width: 200px;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Convert / Merge Button */
.btn-main {
  background: linear-gradient(90deg, #00cc99, #0099ff);
  color: white;
  border: none;
}
.btn-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Clear All Button */
.btn-clear {
  background: #ff4d4d;
  color: white;
  border: none;
}
.btn-clear:hover {
  background: #e03e3e;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* === Button Fade-Up Animation === */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.button-row {
  animation: fadeUp 0.5s ease both;
}

/* Optional: make each button fade slightly staggered */
.button-row .btn:nth-child(1) {
  animation: fadeUp 0.6s ease both;
}
.button-row .btn:nth-child(2) {
  animation: fadeUp 0.7s ease both;
}
