/* -------------------------------------------
   SELF-HOSTED INTER FONT-FACE DEFINITIONS
------------------------------------------- */

/* Inter Regular (400) */
@font-face {
    font-family: "Inter";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("./fonts/Inter-Regular.woff2") format("woff2");
}

/* Inter SemiBold (600) */
@font-face {
    font-family: "Inter";
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url("./fonts/Inter-SemiBold.woff2") format("woff2");
}

/* Inter Bold (700) */
@font-face {
    font-family: "Inter";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("./fonts/Inter-Bold.woff2") format("woff2");
}



/* --------------------------------------------------
   SMOOTHED REM-BASED CSS — (Ultra Smooth Zoom)
   Converted from vw -> rem for smooth scaling
--------------------------------------------------- */


/* ------------------------------ GLOBAL RESET ------------------------------ */
* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* only disable select where needed */
.upload-area,
.upload-area * {
    user-select: none;
}


html {
    font-size: clamp(14px, 0.75vw + 12px, 19px);
    scrollbar-gutter: stable;
}

body {
    background: #000;
    color: #fff;
    font-display: swap;
}

/* Disable X overflow globally */
html, body {
    overflow-x: hidden;
    width: 100%;
}


/* ------------------------------ GLOBAL COMPONENTS ------------------------------ */
/* Trash Button */
.big-trash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg,#ff5a5a,#ff1f1f);
  border: 1px solid rgba(0,0,0,.35);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,59,59,.18);
}
.big-trash-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}


/* ------------------------------ HEADER ------------------------------ */
header {
    width: 100%;
    background: #111;
    padding: 0.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 3000;
}

/* ------------------------------ LOGO ------------------------------ */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem; 
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.85;
}

/* Optimized for a 190x60 logo */
.logo img {
    height: 60px;   /* exact image height */
    width: auto;    /* preserves ratio */
    display: block;
}

/* ------------------------------ NAVIGATION ------------------------------ */
nav {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
}

/* ------------------------------ ACCESSIBILITY ------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}



/* ------------------------------ HAMBURGER ------------------------------ */
.hamburger {
    width: 1.5rem;
    height: 1rem;
    display:none;
    flex-direction: column;
    justify-content: space-between;
    cursor:pointer;
}
.hamburger span {
    height:3px;
    background:#fff;
    border-radius:2px;
    transition:.35s;
}
.hamburger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }


/* ------------------------------ MOBILE NAV DROPDOWN (OLD NAV) ------------------------------ */
@media (max-width:850px) {
    .hamburger { display:flex; }

    nav {
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#111;
        overflow:hidden;
        max-height:0;
        display:block;
        transition:max-height .35s ease;
    }

    nav.show { max-height:20rem; }

    nav ul {
        flex-direction:column;
        padding:0.75rem;
        gap:0.75rem;
    }

    /* duplicate hamburger active block removed (merged above) */

    #mainNav { display:none; }
}


/* ------------------------------ CATEGORIES ------------------------------ */
.categories {
    padding: 0.25rem 0.5rem;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap: 0.5rem;
    text-align:center;
}

.cat-box {
    display:inline-block;
    padding:0.5rem 1rem;
    font-size:0.95rem;
    font-weight:600;
    border-radius:0.6rem;
    color:#fff;
    text-decoration:none;
    cursor:pointer;
    white-space:nowrap;
    transition: transform .18s ease, filter .18s ease;
}

.cat-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.cat-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.cat-green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.cat-orange { background: linear-gradient(135deg, #ea580c, #f97316); }


/* ------------------------------ HERO ------------------------------ */
.hero {
    text-align:center;
    padding:0.5rem;
}

.hero h1 {
    font-size: clamp(1.5rem, 2.2rem - 0.6vw, 2.1rem);
}


.hero p {
    font-size:1.1rem;
    opacity:.95;
}

.text-blue{ color:#60a5fa; }
.text-green{ color:#4ade80; }
.text-purple{ color:#4ade80; }


/* ------------------------------ UPLOAD AREA ------------------------------ */
.upload-area {
    width:92%;
    max-width:32.5rem;
    margin:0.625rem auto;
    padding:2.5rem 1.5rem;          

    border:2px dashed rgba(255, 237, 213, 0.9);   /* premium dashed border */
    border-radius:1rem;

    background:#ea580c;             
    text-align:center;
    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .12s ease;
    cursor:pointer;

    min-height:12rem;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
}

.upload-area.dragover,
.upload-area:hover {
    border-color:#fff7ed;           
    background:#ea580c;
    box-shadow:
        0 0 0 3px rgba(255, 237, 213, 0.6),  /* outer glow */
        0 18px 35px rgba(0, 0, 0, 0.8);
    transform:scale(1.015);
}

.upload-area p {
    font-size:1rem;
    color:#fff7ed;                  
}

/* Previews grid */
#previews {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(20rem,1fr));
    gap:1.125rem;
    width:92%;
    max-width:56.25rem;
    margin:0 auto;
    contain:layout;
}

/* Disable text selection only for upload-area */
.upload-area,
.upload-area * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ------------------------------ HEIC MESSAGES ------------------------------ */
.heic-msg,
.heic-success {
    font-size:1.05rem;
    font-weight:700;
    margin-top:0.5rem;
    animation:fadeIn .3s;
}
.heic-msg { color:#fff; text-shadow:0 0 6px rgba(255,255,255,.35); }
.heic-success { color:#4dff85; text-shadow:0 0 6px rgba(77,255,133,.4); }

.spin { display:inline-block; animation:spinAnim 1s linear infinite; }
@keyframes spinAnim { from{transform:rotate(0);} to{transform:rotate(360deg);} }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }


/* ------------------------------ FEATURES ------------------------------ */
.features-section {
    max-width:68.75rem;
    margin:2.5rem auto;
    padding:0 1.25rem;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:2.5rem 1.25rem;
    text-align:center;
}
.feature {
    width:15rem;
    color:#ccc;
}
.feature-icon {
    font-size:3.25rem;
    height:3.75rem;
    display:flex;
    align-items:center;
    justify-content:center;
}


/* ------------------------------ RATING SECTION ------------------------------ */
.rating-section {
    margin:1.875rem auto 0.625rem;
    padding:0.625rem 1.25rem;
    max-width:40.625rem;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:0.875rem;
    color:#ccc;
    text-align:center;
}

.rate-label {
    font-weight:600;
    color:#fff;
    white-space:nowrap;
}

.stars {
    display:flex;
    flex-direction:row-reverse;
    gap:0.25rem;
}
.stars span {
    font-size:1.35rem;
    color:#555;
    cursor:pointer;
    transition:.18s;
}
.stars span:hover,
.stars span:hover ~ span {
    color:#ffd700 !important;
}
.stars:not(:hover) .active,
.stars:not(:hover) .active ~ span {
    color:#ffd700 !important;
}


/* ------------------------------ FEEDBACK MODAL ------------------------------ */
.feedback-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(4px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.feedback-box {
    background:#111;
    border:1px solid #222;
    padding:1.5rem;
    border-radius:0.875rem;
    width:90%;
    max-width:26.25rem;
    text-align:center;
    color:#fff;
}

.feedback-box textarea,
.feedback-box input {
    width:100%;
    border-radius:0.625rem;
    border:1px solid #333;
    background:#0d0d0d;
    color:#fff;
    padding:0.625rem;
}

.feedback-box button {
    width:100%;
    padding:0.75rem;
    border-radius:0.625rem;
    background:#1773ff;
    color:#fff;
    border:none;
    cursor:pointer;
}

.close-modal {
    background:#333 !important;
}

.feedback-success {
    display:none;
    color:#4dff85;
    font-size:1rem;
}


/* ------------------------------ FOOTER ------------------------------ */
footer {
    background:#050505;
    padding:3.75rem 1.25rem 2.1875rem;
    margin-top:3.75rem;
    color:#d4d4d4;
    border-top:1px solid #1a1a1a;
    text-align:center;
}

.footer-main {
    max-width:75rem;
    margin:0 auto;
}

.footer-menu {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:0.875rem 1.25rem;
    margin-bottom:2.8125rem;
}

.footer-menu-title {
    font-size:1.25rem;
    font-weight:700;
    color:#fff;
    width:100%;
}

.tool-btn {
    padding:0.5625rem 1rem;
    font-weight:600;
    border-radius:0.625rem;
    text-decoration:none;
    color:#fff !important;
    text-shadow:0 0 4px rgba(255,255,255,0.45);
}

.tool-blue { background:linear-gradient(135deg,#2563eb,#3b82f6); }
.tool-purple { background:linear-gradient(135deg,#7c3aed,#a855f7); }
.tool-green { background:linear-gradient(135deg,#16a34a,#22c55e); }
.tool-orange { background:linear-gradient(135deg,#ea580c,#f97316); }

.footer-copy {
    opacity:.5;
    font-size:0.9rem;
    margin-top:2.5rem;
}

footer a {
    color:#d4d4d4 !important;
    text-decoration:none;
    font-weight:500;
    transition:color .2s ease;
}

footer a:hover { color:#fff !important; }


/* ------------------------------ CARD IMAGE FALLBACK ------------------------------ */
.card-img-container {
    width:100%;
    aspect-ratio:4 / 3;
    background:#000;
    border-radius:0.375rem;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.card-img-container img {
    width:100%;
    height:100%;
    object-fit:cover;
}

@supports not (aspect-ratio:1) {
    .card-img-container {
        height:auto;
        padding-top:75%;
        position:relative;
    }
    .card-img-container img {
        position:absolute;
        top:0;
        left:0;
        width:100%;
        height:100%;
        object-fit:cover;
    }
}


/* ------------------------------ MOBILE OVERLAY ------------------------------ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 1500;
}


/* ------------------------------ SIDE MENU (RIGHT SLIDE) ------------------------------ */
.side-menu {
    position:fixed;
    top:0;
    right:0;
    height:100%;
    width:340px;
    max-width:85%;
    background:#ffffff;
    box-shadow:-4px 0 20px rgba(0,0,0,0.15);
    transform:translateX(100%);
    transition:transform .30s ease;
    z-index:2000;

    display:flex;
    flex-direction:column;
    overflow:hidden;
    padding-top:60px;
}

.side-menu .menu-inner {
    padding:20px;
    overflow-y:auto;
    height:100%;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
}

.side-menu h3 {
    margin:20px 0 8px;
    font-size:12px;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:#007aff !important;   /* BLUE HEADING */
}

.side-menu a {
    display:block;
    padding:12px 0;
    font-weight:600;
    color:#111;
    text-decoration:none;
}
.side-menu a:hover { color:#007aff; }

html.menu-open .overlay {
    opacity:1;
    pointer-events:auto;
}
html.menu-open .side-menu {
    transform:translateX(0);
}

html.menu-open,
body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}



/* ------------------------------ DESKTOP NAV DROPDOWNS ------------------------------ */
@media (min-width:851px) {

    .dropdown { position:relative; }

    .dropdown-content {
        display:none;
        position:absolute;
        top:100%;
        left:0;
        background:#111;
        border:1px solid #222;
        border-radius:10px;
        min-width:200px;
        padding:10px 0;
        z-index:1000;
    }

    header nav ul > li:last-child .dropdown-content {
        left:auto;
        right:0;
    }

    .dropdown-content a {
        padding:10px 18px;
        display:block;
        color:#fff;
        border-bottom:1px solid #222;
        text-decoration:none;
    }
    .dropdown-content a:last-child { border-bottom:none; }
    .dropdown-content a:hover { background:#1a1a1a; }

    .dropdown:hover .dropdown-content {
        display:block;
    }
}


/* ------------------------------ FREEZE BACKGROUND + SCROLL FIX ------------------------------ */
.side-menu .menu-inner {
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
}


/* ------------------------------ PREVIEW FILENAME ------------------------------ */
.card-left .card-filename {
    display: none !important;
}
.card-right .card-filename {
    display: block !important;
    opacity: 0.75;
}


/* ------------------------------ CONVERT PAGE CARDS ------------------------------ */
.convert-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    color: #ddd;
    font-size: 0.95rem;

    box-shadow: 0 0 20px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.convert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(23,115,255,0.25);
}

.convert-card .label {
    font-weight: 600;
    opacity: 0.95;
    color: #fff;
    margin-bottom: 4px;
}

.convert-card .info {
    opacity: 0.75;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.convert-card .converted {
    color: #5fb0ff;
    font-weight: 600;
    margin-bottom: 12px;
}

.convert-card .btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.convert-card button.download-btn {
    background: #1773ff;
    border: 1px solid #0f5ed6;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.convert-card button.download-btn:hover {
    background: #1b7dff;
}

.convert-card .trash-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.convert-card .trash-btn:hover {
    opacity: 1;
}


/* ------------------------------ HOW-TO WRAPPER ------------------------------ */
.howto-wrapper {
  max-width: 750px;
  margin: 0 auto;
  padding: 30px 20px;
  color: #e6e6e6;
  font-family: "Inter", sans-serif;
  text-align: center;
  background: #0e7a3b;   /* clean premium green */
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.howto-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.icon {
  width: 80px;
  height: 80px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
}

.arrow {
  font-size: 28px;
  color: #fff;
  font-weight: 500;
}

.howto-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.howto-steps {
  list-style: decimal;
  font-size: 16px;
  line-height: 1.8;
  display: inline-block;
  text-align: left;

  /* breathing space for step numbers */
  padding-left: 25px;
  margin-top: 10px;
}

/* ------------------------------ RESPONSIVE ------------------------------ */

@media (max-width: 600px) {
  .icon {
    width: 60px;
    height: 60px;
  }
  .arrow {
    font-size: 24px;
  }
  .howto-title {
    font-size: 20px;
  }
  .howto-steps {
    font-size: 15px;
  }
  .howto-wrapper {
    max-width: 85%;
  }
}

@media (max-width: 400px) {
  .icon {
    width: 50px;
    height: 50px;
  }
  .arrow {
    font-size: 20px;
  }
}



/* ------------------------------ FAQ SECTION ------------------------------ */
.faq-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 15px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 4px;
}

.faq-subtitle {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 16px;
  opacity: 0.8;
  text-align: center;
}

.faq-item:first-of-type {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 12px 0;
  margin-bottom: 10px;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:after {
  content: "⌃";
  float: right;
  transition: transform 0.3s;
  opacity: 0.7;
}

.faq-item[open] .faq-question:after {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
}


/* ============================
   Universal Page Content Styling
============================ */
.page-content {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.65;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.page-content .subtitle {
    font-size: 1.15rem;
    color: #ccc;
    margin-bottom: 28px;
}

.page-content h2 {
    margin-top: 32px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul {
    margin: 10px 0 20px 25px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content .email-link {
    color: #4da3ff;
    font-weight: 600;
    text-decoration: none;
}
.page-content .email-link:hover {
    text-decoration: underline;
}

/* Fix contrast for headings */
h3 {
  color: #ffffff !important;
}

/* Fix contrast for blue button */
#startCompressBtn {
  background: #0064ff !important;
  color: #ffffff !important;
}

/* Fix footer text */
.footer-copy {
  color: #ffffff !important;
}

/* Fix footer links */
footer a {
  color: #ffffff !important;
}


/* =============================== */
/* 💙 ACCESSIBLE SOLID BLUE BLOG CARD */
/* =============================== */

.blog-card.solid-blue {
  max-width: 900px;
  margin: 50px auto;
  padding: 32px;
  background: #0F4AB8;        /* WCAG-Passing Accessible Blue */
  border-radius: 16px;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

/* Tablets & Medium screens */
@media (max-width: 900px) {
  .blog-card.solid-blue {
    margin: 40px 26px;
    padding: 26px;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  .blog-card.solid-blue {
    margin: 32px 18px;
    padding: 22px;
    border-radius: 14px;
  }
}

/* Small mobile (iPhone SE size) */
@media (max-width: 400px) {
  .blog-card.solid-blue {
    margin: 28px 14px;
    padding: 18px;
  }
}


/* =============================== */
/* BLOG TEXT (ACCESSIBLE)          */
/* =============================== */

.blog-post {
  color: #ffffff;
  font-family: Inter, Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.78;
}

.blog-post h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
  font-weight: 700;
  color: #ffffff;
}

.blog-post h3 {
  font-size: 1.35rem;
  margin-top: 26px;
  font-weight: 700;
  color: #ffffff;
}

.blog-post h4 {
  font-size: 1.2rem;
  margin-top: 20px;
  font-weight: 600;
  color: #ffffff;
}

.blog-post p {
  margin: 14px 0;
  color: #ffffff;
}

.blog-post strong {
  color: #ffffff;
}

.blog-post ul li,
.blog-post ol li {
  margin: 8px 0;
  color: #ffffff;
}

.blog-post ul li::marker {
  color: #ffffff;
}

.blog-post a {
  color: #e7f0ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post a:hover {
  color: #ffffff;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

/* ============================================
   QR PAGE — ISOLATED STYLES (SAFE TO MERGE)
   ============================================ */

.qr-page {
    display: flex;
    flex-direction: column;     /* FIX → stack card + rating vertically */
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh;
    gap: 40px; /* spacing between card + rating */
}

/* Main Card */
.qr-page .container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Heading */
.qr-page h1 {
    text-align: center;
    color: #333 !important;
    margin-bottom: 20px;
    font-size: 28px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* QR Icon */
.qr-page .qr-icon {
    width: 40px;
    height: 40px;
    background: #000;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: repeat(3,1fr);
    gap: 2px;
    padding: 4px;
    border-radius: 5px;
}
.qr-page .qr-icon span {
    background: #fff;
    border-radius: 2px;
}
.qr-page .qr-icon span:nth-child(1),
.qr-page .qr-icon span:nth-child(3),
.qr-page .qr-icon span:nth-child(5),
.qr-page .qr-icon span:nth-child(7),
.qr-page .qr-icon span:nth-child(9) {
    background: #000;
}

/* Tabs */
.qr-page .tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 15px;
    overflow-x: auto;
}
.qr-page .tab {
    flex: 1;
    min-width: 80px;
    padding: 12px 10px;
    background: transparent;
    border: none;
    color: #888 !important;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
    text-align: center;
}
.qr-page .tab:hover {
    background: #3a3a3a;
    color: #fff !important;
}
.qr-page .tab.active {
    background: #667eea;
    color: #fff !important;
}
.qr-page .tab-icon {
    font-size: 20px;
}

/* Input Sections */
.qr-page .input-sections {
    display: none;
}
.qr-page .input-sections.active {
    display: block;
    margin-bottom: 30px;
}

/* Section Box */
.qr-page .section {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}
.qr-page .section:hover {
    border-color: #667eea;
}

/* FIX — headings + bullet dot */
.qr-page .section h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.qr-page .section h3::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Textarea */
.qr-page textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
}
.qr-page textarea:focus {
    border-color: #667eea;
}

/* Inputs */
.qr-page input[type="url"],
.qr-page input[type="text"],
.qr-page input[type="tel"],
.qr-page input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
}
.qr-page input:focus {
    border-color: #667eea;
}

/* Color Section */
.qr-page .color-section {
    margin-bottom: 25px;
}
.qr-page .color-section label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}
.qr-page .color-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
}

/* Buttons */
.qr-page button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 16px !important;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 20px;
}
.qr-page button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102,126,234,0.4);
}

/* QR Code Wrapper */
.qr-page #qrcode {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;

    /* PREVENT BLEEDING */
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Canvas Scaling */
.qr-page #qrcode canvas,
.qr-page #qrcode img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Mobile QR Size */
@media (max-width: 480px) {
    .qr-page #qrcode canvas,
    .qr-page #qrcode img {
        width: 250px !important;
        height: auto !important;
        margin: 0 auto;
    }
}

/* Download Button */
.qr-page .download-btn {
    background: linear-gradient(135deg,#11998e,#38ef7d);
    display: none;
}

/* Error */
.qr-page .error {
    color: #e74c3c !important;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .qr-page .container {
        padding: 30px 25px;
  }
  .qr-page h1 { font-size: 24px !important; }
  .qr-page .tab { min-width: 70px; }
}

@media (max-width: 480px) {
  .qr-page { padding: 15px; }
  .qr-page .container { padding: 25px 20px; }
  .qr-page h1 { font-size: 22px !important; }
  .qr-page .qr-icon { width: 35px; height: 35px; }
}

/* homepage */
.home-tools-intro {
    text-align: center;
    margin: 50px auto 25px;
    max-width: 700px;
    padding: 0 20px;
}
.home-tools-intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.home-tools-intro p {
    color: #ccc;
    font-size: 1.05rem;
}

/* GRID for 3 tools */
.home-tools-grid {
    max-width: 950px;
    margin: 40px auto 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.tool-box {
    background: #0f0f0f;
    border: 1px solid #1d1d1d;
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: 0.25s ease;
}
.tool-box:hover {
    transform: translateY(-6px);
    border-color: #0064ff;
    box-shadow: 0 0 18px rgba(0,100,255,0.25);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.tool-box h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.tool-box p {
    color: #bbb;
    font-size: 0.95rem;
}

.lazy-section {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

/* social icons */

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 26px 0;
}

.social-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #1b2432;
    transition: 0.25s ease;
}

.social-link img {
    width: 24px;
    height: 24px;
    transition: 0.25s ease;
    filter: invert(92%) brightness(110%); /* makes black SVG become off-white */
}

/* Hover animations */
.social-link:hover {
    transform: translateY(-4px);
    background: #283244;
}

/* Brand hover tints using filter (no editing SVG needed) */

/* X brand blue */
.x-link:hover img {
    filter: invert(50%) sepia(90%) saturate(3000%) hue-rotate(180deg) brightness(1.2);
}

/* Instagram gradient-like tint */
.insta-link:hover img {
    filter: invert(36%) sepia(88%) saturate(3600%) hue-rotate(-10deg) brightness(1.1);
}
