:root {
  --primary:#0056ff;
  --secondary:#fafafa;
  --text:#222;
}
body{font-family:Poppins,sans-serif;margin:0;background:var(--secondary);color:var(--text);}
.container{max-width:1100px;margin:auto;padding:20px;}
header{background:#fff;box-shadow:0 2px 6px rgba(0,0,0,0.1);padding:15px 20px;position:sticky;top:0;z-index:999;display:flex;justify-content:space-between;align-items:center;}
.logo{font-weight:600;text-decoration:none;color:var(--primary);font-size:18px;}
nav a{margin-left:15px;text-decoration:none;color:var(--primary);}
nav a:hover{color:#0039c1;}
.breadcrumb{margin:10px 0;color:#555;}
.tool-box{background:#fff;padding:25px;border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,0.05);text-align:center;}
.tool-icon{width:80px;height:80px;margin-bottom:15px;}
.description{max-width:600px;margin:auto;}
textarea{width:100%;height:120px;margin-top:15px;padding:10px;border-radius:6px;border:1px solid #ccc;font-family:monospace;}
button{background:var(--primary);color:#fff;border:none;padding:10px 20px;margin:10px 5px;border-radius:6px;cursor:pointer;}
button:hover{opacity:0.9;}
.preview-box{height:150px;border-radius:8px;margin:15px 0;border:1px solid #ccc;}
.options{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center;margin-top:10px;}
.adsense{text-align:center;background:#eee;padding:15px;margin:20px 0;border-radius:8px;}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:15px;}
.card{background:#fff;padding:20px;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,0.05);text-align:center;}
.card img{width:50px;height:50px;margin-bottom:10px;}
.card button{background:var(--primary);}
.faq{margin-top:40px;}
.faq-item{background:#fff;padding:15px;border-radius:8px;margin-bottom:10px;box-shadow:0 2px 6px rgba(0,0,0,0.05);}
footer{text-align:center;padding:20px;background:#fff;margin-top:40px;box-shadow:0 -2px 6px rgba(0,0,0,0.1);}
#backToTop{position:fixed;bottom:20px;right:20px;background:var(--primary);color:#fff;border:none;border-radius:6px;padding:10px 15px;cursor:pointer;display:none;}

/* Background Remover Specific Styles */
#uploadZone {
    border: 3px dashed #ccc;
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
    background: #f9f9f9;
}
#uploadZone.dragover {
    border-color: var(--primary);
    background: #f0f5ff;
}
#imageInput {
    display: none;
}
#canvasContainer {
    margin: 20px auto;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: crosshair; /* Eyedropper cursor */
    display: none; /* Hidden until image is loaded */
    background: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 0 / 20px 20px; /* Checkerboard pattern for transparency */
}
#imageCanvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.control-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.control-item {
    text-align: left;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    flex: 1 1 250px;
}
.control-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
#toleranceValue {
    font-weight: bold;
    color: var(--primary);
    margin-left: 5px;
}
#removeBgBtn {
    background: #ff4d4d; /* Red for removal */
    margin-top: 20px;
    display: none;
}
#downloadBtn {
    background: #00cc66;
    margin-top: 20px;
    display: none;
}

@media(max-width:600px){
  .control-panel {
    flex-direction: column;
  }
}
/* style.css */

/* --- Global Styles & Variables --- */
:root {
  --primary: #0056ff;
  --secondary: linear-gradient(135deg, #00E0FF, #00FFFF); /* Bright Cyan Gradient */
  --text: #222;
}

body {
  font-family: Poppins, sans-serif;
  margin: 0;
  background: var(--secondary);
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* --- Header Styles --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0056ff, #00aaff);
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-img {
  margin-right: 12px;
  filter: brightness(1) invert(0.9) sepia(0.8) saturate(3) hue-rotate(45deg);
}

.logo-text {
  font-size: 24px;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
  font-weight: 700;
}

/* Navbar links */
#navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

#navbar a {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
}

#navbar a:hover {
  color: #fffa;
  transform: scale(1.1);
}

/* Hamburger Icon */
#hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1002;
}

#hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  font-family: Poppins, sans-serif;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0056ff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  min-width: 180px;
  z-index: 999;
  border: 1px solid #004acb;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #004acb;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --- Mobile Responsive Menu --- */
@media screen and (max-width: 768px) {
  #hamburger {
    display: flex;
  }

  #navbar {
    position: fixed;
    top: 80px;
    right: 15px;
    width: 250px;
    background: linear-gradient(180deg, #0056ff, #00399d);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    gap: 0;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.25);
    z-index: 1001;
    border-radius: 12px;
    transform: translateX(110%);
    transition: transform 0.3s ease-in-out;
  }

  #navbar.show {
    display: flex;
    transform: translateX(0);
  }

  #navbar a, .dropdown {
    padding: 15px 25px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .dropdown-content {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border-radius: 0;
    border: none;
    min-width: 100%;
  }

  .dropdown-content a {
    color: #e0f7ff;
    font-weight: normal;
    padding-left: 40px;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* --- Footer Styles --- */
footer a {
  text-decoration: none;
  color: var(--primary);
  margin-right: 15px;
}

footer a:hover {
  color: #0039c1;
}

/* Social media icon hover effect */
.footer-social a:hover {
    transform: scale(1.15);
}
/* =========================================
   BASE TYPOGRAPHY & RESET
   ========================================= */
:root {
    --primary-color: #2c3e50; /* Dark Blue */
    --accent-color: #e74c3c;  /* Red/Orange for Visual Impact */
    --bg-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f9f9f9;
    --border-color: #e0e0e0;
    --link-color: #3498db;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #f4f7f6; /* Slight off-white for page bg */
    font-size: 18px;
    width: 100%;
    overflow-x: hidden;
}

/* =========================================
   LAYOUT CONTAINER (Fluid & Responsive)
   ========================================= */
.article-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* =========================================
   TYPOGRAPHY STYLES
   ========================================= */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 4px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 35px;
}

h2 {
    font-size: 2rem;
    margin-top: 50px;
    position: relative;
    padding-left: 15px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

ul {
    margin-bottom: 25px;
    padding-left: 25px;
}

li {
    margin-bottom: 12px;
}

/* =========================================
   COMPONENTS (Tables, Boxes, Buttons)
   ========================================= */

/* Feature Highlights Box */
.feature-box {
    background-color: #fff5f5; /* Light tint matching accent */
    border: 1px solid #fadbd8;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

/* Responsive Table Wrapper */
.table-wrapper {
    overflow-x: auto; /* Critical for mobile scrolling */
    margin: 35px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Prevents squishing */
}

th, td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: var(--light-gray);
}

tr:hover {
    background-color: #f1f1f1;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: #ffffff;
    padding: 50px;
    text-align: center;
    border-radius: 12px;
    margin-top: 60px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 25px;
    transition: transform 0.2s, background-color 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.cta-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

/* =========================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================= */
@media (max-width: 768px) {
    /* Layout Adjustments */
    .article-container {
        padding: 20px 15px;
        width: 100%;
    }

    /* Typography Adjustments */
    body {
        font-size: 16px; /* Smaller base size */
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 35px;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        text-align: left; /* Easier to read on small screens */
    }

    /* Component Adjustments */
    .feature-box {
        padding: 20px;
    }

    th, td {
        padding: 12px;
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-btn {
        width: 100%; /* Full width button on mobile */
        padding: 15px;
    }
}
/* =========================================
   FAQ SECTION STYLES
   ========================================= */

:root {
    --faq-primary: #2c3e50;    /* Dark Blue for Headings */
    --faq-accent: #e74c3c;     /* Red/Orange for Highlights */
    --faq-bg: #ffffff;         /* White Background */
    --faq-text: #444444;       /* Dark Gray Text */
    --faq-light-bg: #f9f9f9;   /* Light Gray for Table/Box */
    --faq-border: #e0e0e0;     /* Subtle Borders */
}

/* Main Container */
.faq-container {
    width: 100%;
    max-width: 1200px; /* Matches standard article width */
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--faq-text);
    box-sizing: border-box;
}

/* Intro & Summary Boxes */
.faq-intro, .faq-summary {
    background-color: #fff5f5; /* Light tint matching accent */
    border-left: 5px solid var(--faq-accent);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.faq-summary {
    background-color: #eef7fb; /* Blue tint for summary */
    border-left-color: #3498db;
    margin-top: 40px;
}

/* Headings */
.faq-section-title {
    font-size: 2.2rem;
    color: var(--faq-primary);
    border-bottom: 2px solid var(--faq-border);
    padding-bottom: 15px;
    margin-bottom: 30px;
    margin-top: 40px;
}

.faq-question {
    font-size: 1.3rem;
    color: var(--faq-primary);
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Answers */
.faq-answer {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
    text-align: left;
}

/* Responsive Table Styling */
.table-responsive-wrapper {
    overflow-x: auto; /* Enables scrolling on mobile */
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures table doesn't crush on mobile */
    background-color: var(--faq-bg);
}

.comparison-table th, 
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--faq-border);
}

.comparison-table th {
    background-color: var(--faq-primary);
    color: #ffffff;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--faq-light-bg);
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .faq-container {
        padding: 15px;
    }

    .faq-section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .faq-question {
        font-size: 1.15rem; /* Slightly smaller for mobile screens */
        margin-top: 25px;
        line-height: 1.4;
    }

    .faq-answer {
        font-size: 0.95rem; /* Readable text size */
    }

    /* Adjust padding for touch targets */
    .comparison-table th, 
    .comparison-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .faq-intro, .faq-summary {
        padding: 15px;
    }
}
/* --- GRID LAYOUT --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* --- CARD DESIGN (Green Background) --- */
.card {
  background: linear-gradient(160deg, #00e600, #00ff00); /* Bright Green Gradient */
  border-radius: 30px;
  padding: 20px 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px; /* Height fix for alignment */
}

/* --- BLUE ENERGY ANIMATION EFFECT --- */
@keyframes blueEnergyAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 224, 255, 0.4), rgba(0, 255, 255, 0.6), rgba(0, 224, 255, 0.4), rgba(0, 255, 255, 0.6), rgba(0, 224, 255, 0.4));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
  animation: blueEnergyAnimation 4s linear infinite;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* --- IMAGES & TEXT --- */
.card img {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.card h2 {
  color: #ffffff;
  font-size: 1.35rem;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
  margin: 0 0 10px 0;
  font-family: 'Poppins', sans-serif;
}

.card p {
  color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  font-family: 'Poppins', sans-serif;
}

/* --- BUTTON STYLE (Cyan with Black Border) --- */
.card a {
  text-decoration: none;
}

.card button {
  background: linear-gradient(45deg, #00BFFF, #00FFFF);
  color: #ffffff;
  border: 2px solid black; /* Black Border Added */
  border-radius: 12px;
  padding: 14px 25px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 200, 255, 0.4);
  transition: all 0.3s ease;
}

.card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 200, 255, 0.6);
}