/* --- Global Styles & Variables --- */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --background-color: #f8f9fa;
  --text-color: #343a40;
  --heading-color: #212529;
  --card-background: #ffffff;
  --border-color: #dee2e6;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Header --- */
header {
  background: var(--card-background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 24px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

.breadcrumb {
  margin-bottom: 20px;
  color: #6c757d;
}

/* --- Main Tool Box --- */
.tool-box {
  background: var(--card-background);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 40px;
}

.tool-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

h1 {
  color: var(--heading-color);
  margin-bottom: 10px;
}

.description {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--secondary-color);
}

/* --- Color Finder Specific Styles --- */
.color-finder-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.color-input-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.color-input-section label {
  font-weight: 600;
  font-size: 18px;
  color: var(--heading-color);
}

input[type="color"] {
  -webkit-appearance: none;
  width: 60px;
  height: 60px;
  border: none;
  cursor: pointer;
  background: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 4px solid var(--card-background);
  border-radius: 50%;
}

input[type="text"] {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 18px;
  font-family: monospace;
  width: 150px;
  text-align: center;
}

.color-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  text-align: left;
}

.color-card {
  background: #fdfdfd;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.color-card h2 {
  margin-top: 0;
  font-size: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.color-preview {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.color-details p {
  margin: 8px 0;
  font-size: 16px;
  word-break: break-all;
}
.color-details span {
  font-family: monospace;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- General Sections (How it works, FAQ, etc.) --- */
section {
  background: var(--card-background);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
section h2 {
  margin-top: 0;
}
section ul {
  list-style: none;
  padding-left: 0;
}
section ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}
section ul li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h3 {
  margin: 0;
  font-size: 18px;
}

/* --- Grid for Related Tools --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #fdfdfd;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.card img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}
.card button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.card button:hover {
  background: #0056b3;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 25px;
  background: var(--card-background);
  margin-top: 40px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}
.footer-links {
  margin-bottom: 15px;
}
.footer-links a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary-color);
}

/* --- Back to Top Button --- */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .color-results {
    grid-template-columns: 1fr;
  }
  nav a {
    margin-left: 10px;
    font-size: 14px;
  }
  .logo {
    font-size: 20px;
  }
}
/* 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);
}
/* ------------------------------------------
   RESET & BASE TYPOGRAPHY
------------------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9f9;
    font-size: 18px; /* Readable base size */
}

h1, h2, h3 {
    color: #222;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-top: 2rem; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1.5rem;
    text-align: justify; /* Clean look for blocks of text */
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: #0056b3; /* Highlight keywords subtly */
}

/* ------------------------------------------
   LAYOUT & CONTAINER
------------------------------------------ */
.container {
    width: 100%;
    max-width: 1200px; /* Optimized width */
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    background: #fff;
    padding: 40px 0;
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* ------------------------------------------
   HEADER & FOOTER
------------------------------------------ */
.main-header {
    background: linear-gradient(135deg, #0061f2 0%, #00c6f7 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.main-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.main-footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ------------------------------------------
   TABLE STYLING
------------------------------------------ */
.table-container {
    width: 100%;
    overflow-x: auto; /* Horizontal scroll for mobile */
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px; /* Ensures table doesn't squish too much */
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #0056b3;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:hover {
    background-color: #f1f1f1;
}

/* ------------------------------------------
   CTA BOX & BUTTONS
------------------------------------------ */
.cta-box {
    background-color: #e8f4fd;
    border-left: 5px solid #0056b3;
    padding: 30px;
    border-radius: 4px;
    margin: 40px 0;
    text-align: center;
}

.btn-primary {
    background-color: #0061f2;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,97,242,0.3);
}

.btn-primary:hover {
    background-color: #004bbd;
    transform: translateY(-2px);
}

/* ------------------------------------------
   MEDIA QUERIES (RESPONSIVENESS)
------------------------------------------ */

/* Tablet Adjustments */
@media (max-width: 1250px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Slightly smaller for mobile screens */
    }
    
    .main-header {
        padding: 40px 0;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    .content-wrapper {
        padding: 20px 0;
        margin-top: 0;
        box-shadow: none; /* Flatter look on mobile */
    }

    p {
        text-align: left; /* Easier to read on narrow screens */
    }

    /* Make table scrollable hint */
    .table-container {
        border: 1px solid #eee;
    }
    
    /* Ensure buttons are finger-friendly */
    .btn-primary {
        width: 100%; /* Full width button */
        padding: 18px;
    }
    
    ul {
        padding-left: 1.5rem;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    .subtitle { font-size: 1rem; }
}
/* --- 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);
}
/* Base Typography & Reset */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Main Container */
.faq-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Header Section */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.faq-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Items */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #007bff;
}

.faq-item h3 {
    font-size: 1.25rem;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: #444;
    font-size: 1rem;
}

/* Comparison Table Section */
.comparison-section {
    margin-top: 50px;
}

.comparison-section h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.table-wrapper {
    overflow-x: auto; /* Makes table scrollable on mobile */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    min-width: 600px; /* Ensures table doesn't squish too much */
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #007bff;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Footer Section */
.faq-footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background-color: #eef7ff;
    border-radius: 8px;
    border-left: 5px solid #007bff;
}

.faq-footer p {
    margin: 0;
    font-weight: 500;
    color: #333;
}

/* ------------------------------------------------
   MEDIA QUERIES (Mobile & Tablet Optimization)
------------------------------------------------ */

@media (max-width: 768px) {
    .faq-container {
        margin: 20px 10px;
        padding: 15px;
    }

    .faq-header h2 {
        font-size: 1.8rem;
    }

    .faq-header p {
        font-size: 1rem;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .comparison-section h3 {
        font-size: 1.5rem;
    }

    th, td {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-header h2 {
        font-size: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.05rem;
    }

    .faq-footer {
        font-size: 0.9rem;
    }
}