:root {
  --primary-color: #4a6bff;
  --accent-color: #3a4fd9;
  --secondary-color:#692424
  --card-bg: #ffffff;
  --text-color: #333333;
  --border-width: 2px;
  --glow-size: 4px;
  --category-color: #4a6bff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF;
  color: #000000;
}

.main-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
}

/* ========================= TYPOGRAPHY ========================= */
h1, h2 {
  text-align: center;
  color: #000000;
}

h1 {
  margin-top: 50px;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

h2 {
  margin-bottom: 24px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.eye-catching-subheading {
  font-size: 1.5rem;
  text-align: center;
  color: #000000;
  opacity: 0.9;
  margin-bottom: 50px;
}

/* ========================= BUTTONS ========================= */
.btn {
  display: block;
  width: 100%;
  max-width: 240px;
  padding: 14px 24px;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin: 20px auto;
  transition: background-color 0.3s ease;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background-color: #007bff; }
.btn-primary:hover { background-color: #0056b3; }
.btn-success { background-color: #28a745; }
.btn-success:hover { background-color: #218838; }
.btn-danger { background-color: #dc3545; }
.btn-danger:hover { background-color: #c82333; }
.btn-warning { background-color: #fd7e14; }
.btn-warning:hover { background-color: #e8590c; }
.btn-info { background-color: #17a2b8; }
.btn-info:hover { background-color: #117a8b; }
.btn-dark { background-color: #343a40; }
.btn-dark:hover { background-color: #1d2124; }

/* Advanced Settings Toggle */
.button-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

#advanced-settings-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6e8efb, #4a6cf7);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  width: auto;
  margin-bottom: 16px;
}

#advanced-settings-toggle:hover {
  background: linear-gradient(135deg, #5d7df5, #3a5ce4);
  box-shadow: 0 6px 16px rgba(74, 108, 247, 0.4);
  transform: translateY(-2px);
}

#advanced-settings-toggle:active { transform: translateY(0) scale(0.98); }

#advanced-settings-toggle .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ========================= UPLOAD BOX ========================= */
.upload-container { 
  max-width: 500px;
  width: 100%;
  margin: 30px auto;
  padding: 0 16px;
  text-align: center;
}

.upload-box {
  border: 2px solid #000;               /* black border */
  border-radius: 12px;                  /* rounded corners */
  padding: 30px 25px;
  transition: all 0.3s ease;
  background-color: #ffffff;            /* white card background */
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* subtle shadow */
}

/* Hover effect */
.upload-box:hover,
.upload-box.dragover {
  border-color: #4a6bff;                /* blue highlight */
  box-shadow: 0 12px 30px rgba(74,107,255,0.25);
  transform: translateY(-3px);          /* slight lift */
}

.upload-icon {
  font-size: 60px;                      /* bigger icon */
  color: #4a6bff;                        /* blue icon */
  margin-bottom: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.upload-icon:hover {
  color: #3a4fd9;                        /* darker on hover */
  transform: scale(1.2);
}

.upload-text,
.upload-box p {
  font-size: 22px;                      /* bigger text */
  color: #1e293b;                        /* dark text for contrast */
  font-weight: 700;                     /* bold text */
  margin-bottom: 20px;
  user-select: none;
}

.upload-btn {
  background-color: #4a6bff;            /* blue button */
  color: #ffffff;                        /* white text */
  font-size: 20px;                       /* bigger font */
  font-weight: 700;                      /* bold */
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-btn:hover {
  background-color: #3a4fd9;            /* darker blue on hover */
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ========================= Dragover ========================= */
.upload-box.dragover {
  border-color: #4a6bff;
  background: rgba(74, 107, 255, 0.08);
}
/* ========================= CRITICAL NAVBAR STYLES ========================= */
/* These load first to prevent FOUC */
#navbar-host {
    position: relative;
    z-index: 1000;
    height: 82px; /* Fixed height - prevents layout shift */
    width: 100%;
}

/* Premium Loading Animation */
#navbar-host:empty {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    overflow: hidden;
}

/* Animated gradient background */
#navbar-host:empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        #667eea 0%,
        #764ba2 25%,
        #667eea 50%,
        #764ba2 75%,
        #667eea 100%
    );
    background-size: 400% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo skeleton */
#navbar-host:empty::after {
    content: '';
    width: 140px;
    height: 24px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.2) 25%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0.2) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    position: relative;
    z-index: 1;
}

/* Menu button skeleton */
#navbar-host:empty .skeleton-menu {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    animation: pulse-opacity 1.5s ease-in-out infinite;
}

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Pulse opacity */
@keyframes pulse-opacity {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Ensure real navbar has same height */
.navbar {
    height: 82px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    height: 100%;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Make sure mobile menu button shows immediately */
.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Hide desktop nav initially on mobile */
.desktop-nav {
    display: none;
}

/* Smooth transition when real navbar loads */
#navbar-host:not(:empty) {
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* =========================================================
   Rest of your existing CSS below (keep as is)
   ========================================================= */
.navbar * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* NAVBAR MAIN */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 0; /* Professional height */
    width: 100% !important;
    overflow: visible !important;
}

/* CONTAINER */
.navbar .nav-container {
    width: 100%;
    padding: 6px 20px;
}

/* NAV CONTENT */
.navbar .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.navbar .logo-text {
    font-size: 1.25rem; 
    font-weight: 700;
    white-space: nowrap;
    margin-right: 12px; /* Space from action icons */
}

/* STYLISH ACTION ICON BUTTONS (TOP RIGHT) */
.navbar .icon-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px; /* Smaller box */
    border-radius: 6px;
    backdrop-filter: blur(4px);
    transition: 0.25s ease;
    cursor: pointer;
}

.navbar .icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.navbar .icon-btn svg {
    width: 22px;
    height: 22px;
}

/* RIGHT ACTION WRAPPER FIX */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Compact spacing */
}

/* DESKTOP NAV */
.navbar .desktop-nav {
    display: none;
    gap: 20px;
    white-space: nowrap;
}

/* NAV LINK (DESKTOP + MOBILE ICON + TEXT BIGGER + BOLD) */
/* NAV LINK (DESKTOP + MOBILE – PROFESSIONAL SIZE) */
.navbar .nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: 0.3s ease;
}

.navbar .nav-link svg {
    width: 28px !important;
    height: 28px !important;
    fill: white;
}

/* MOBILE MENU BUTTON */
.navbar .mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    margin-left: auto; /* Align to right */
}

/* MOBILE MENU */
.navbar .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100% !important;
    background: #ffffff;
    transform: translateX(-100%);
    transition: 0.3s ease;
    z-index: 99999;
    overflow-x: hidden !important;
    overflow-y: auto;
}

/* OPEN STATE */
.navbar .mobile-menu.open {
    transform: translateX(0);
}

/* MOBILE TOP BAR */
.mobile-menu-top {
    background: #f5f5f7;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* MOBILE TOP LOGO */
.mobile-menu-top .logo-text {
    color: #000 !important;
    font-size: 1.15rem;
    font-weight: 700;
}

/* MOBILE SEARCH BAR (MENU INSIDE ONLY) */
.mobile-search {
    padding: 10px 18px;
    background: #f3f4f6;
    border-radius: 40px;
    margin: 20px;
    display: flex;
    gap: 8px;
}

.mobile-search input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 1rem;
}

/* MOBILE NAV – FULL AUTO SCROLL */
.mobile-nav {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-bottom: 40px;
}

.mobile-nav::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

/* MOBILE NAV LINKS – BIGGER + BOLD (UNIVERSAL) */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    font-size: 1.20rem !important;
    font-weight: 700 !important;
    color: #000000;
    text-decoration: none;
}

.mobile-nav-link svg {
    width: 28px !important;
    height: 28px !important;
}

/* MOBILE SOCIAL ICONS */
.mobile-social {
    display: flex;
    gap: 16px;
    padding: 20px;
}

.mobile-social svg {
    width: 26px;
    height: 26px;
}

/* REMOVE MOBILE SEARCH TOP RIGHT ICON */
.nav-actions .search-container {
    display: none; /* Mobile search handled in menu only */
}

/* =========================================================
   DEFAULT (MOBILE + TABLET: 0px – 1024px)
   Hamburger visible, Desktop nav hidden
   ========================================================= */

/* Show mobile buttons */
.navbar .mobile-menu-btn,
.navbar .mobile-search {
    display: flex;
}

/* Action icons */
.nav-actions .action-icons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* =========================================================
   DESKTOP ONLY (1025px and above)
   ========================================================= */
@media (min-width: 1025px) {

    /* Show desktop nav */
    .navbar .desktop-nav {
        display: flex;
        gap: 24px;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Hide mobile buttons */
    .navbar .mobile-menu-btn,
    .navbar .mobile-search {
        display: none;
    }

    /* Action icons */
    .nav-actions .action-icons {
        gap: 12px;
        flex-wrap: nowrap;
    }

    /* Container width */
    .navbar .nav-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        width: 100%;
    }
 /* Desktop typography boost */
    .navbar .nav-link {
        font-size: 1.12rem !important;
        font-weight: 650 !important;
        letter-spacing: 0.3px;
    }
    /* Logo */
    .navbar .logo-text {
        font-size: 1.45rem;
        font-weight: 800;
    }
}

/* =========================================================
   BASE NAV LINK STYLES
   ========================================================= */
.navbar .nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.navbar .nav-link svg {
    transition: fill 0.25s ease;
}


/* =========================================================
   HOVER EFFECT – DESKTOP DEVICES ONLY
   ========================================================= */
@media (hover: hover) {
    .navbar .nav-link:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-1px);
    }

    .navbar .nav-link:hover svg {
        fill: #dc2626;
    }
}
/* [Logo]        [Centered Nav Links]        [Icons] */
@media (min-width: 1025px) {

    .navbar .nav-content {
        justify-content: space-between;
        position: relative;
    }

    .navbar .desktop-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
/* =========================================================
   ✅ Hard-Isolated Footer (No parent effect possible) 
   ========================================================= */

   #site-footer {
    position: relative;
    bottom: 0;
    width: 100% !important; /* full width within viewport */
    max-width: 100vw !important; /* no overflow from auto margin pages */
    margin: 0 !important;
    padding: 4rem 1.5rem 0 !important;
    background-color: #111 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    z-index: 9999;
}


/* ✅ Reset every inherited style globally for this footer */
#site-footer * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
    color: #fff; 
}
/* ✅ Footer structure */
#site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

#site-footer .footer-logo h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

#site-footer .footer-logo p {
    color: #bbb;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

#site-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

#site-footer .footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    white-space: nowrap;
}

#site-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#site-footer .footer-column ul li {
    margin-bottom: 0.75rem;
}

#site-footer .footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.82rem, 1.5vw, 0.95rem);
}

#site-footer .footer-column ul li a:hover {
    color: #00A8FF;
}

#site-footer .footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* Footer credit */
/* Base footer text */
#site-footer .footer-bottom .footer-credit {
    font-size: 14px;
    color: #fff; /* all normal text white */
    opacity: 0.95;
    line-height: 1.5;
}

/* CEO & Founder role - keep white */
#site-footer .footer-bottom .footer-credit .role {
    color: #fff;
    font-weight: 600;
}

/* Ahtisham Ali link - golden */
#site-footer .footer-bottom .footer-credit .ceo-link {
    color: #FFD700;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect - glow + lift */
#site-footer .footer-bottom .footer-credit .ceo-link:hover {
    text-shadow:
        0 0 8px rgba(255,215,0,0.8),
        0 0 16px rgba(255,215,0,0.6),
        0 0 24px rgba(255,215,0,0.4);
    transform: translateY(-2px);
    cursor: pointer;
}


/* ✅ Responsive */
@media (max-width: 600px) {
    #site-footer .footer-content {
        text-align: center;
    }
}
/* =========================================================
   ACTION BUTTONS FIX - HORIZONTAL ON ALL DEVICES
   ========================================================= */
/* ✅ FIXED: Action icons - Always horizontal with perfect size */
.nav-actions .action-icons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important; /* Gap thoda kam */
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Individual icon buttons - Perfect size */
.nav-actions .icon-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    padding: 6px 8px !important; /* Padding kam ki (8px 10px se 6px 8px) */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
}

/* Icon SVG - perfect size */
.nav-actions .icon-btn svg {
    width: 20px !important;
    height: 20px !important;
}

/* Small devices - same perfect size */
@media screen and (max-width: 768px) {
    .nav-actions .action-icons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }
    
    .nav-actions .icon-btn {
        width: auto !important;
        height: auto !important;
        padding: 6px 8px !important; /* Same padding */
    }
    
    .nav-actions .icon-btn svg {
        width: 20px !important;
        height: 20px !important; /* Mobile par bhi 20px */
    }
}
/* ========================= TOOLS GRID ========================= */
/* ========================= RELATED TOOLS ========================= */

.tool-category {
  max-width: 1200px;          /* same as features / faq */
  margin: 40px auto;
  padding: 0 16px;            /* EXACT same left/right spacing */
  box-sizing: border-box;
  overflow-x: hidden;
  text-align: center;
}

.tools-grid {
  display: grid;
  width: 100%;
  gap: 20px;                  /* SAME visual gap as feature-grid */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ========================= TOOL CARD ========================= */

.tool-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 20px;
  padding: 16px;
  margin: 0.5rem;             /* CRITICAL → same visual spacing */
  text-decoration: none;
  color: #1a1a1a;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  z-index: 1;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);   /* same lift as feature cards */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ========================= ICON ========================= */

.tool-card i,
.tool-card svg {
  display: block;
  margin: 0 auto 0.6rem;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.tool-card:hover i,
.tool-card:hover svg {
  transform: scale(1.1);
}

/* ========================= TEXT ========================= */

.tool-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ========================= ICON SIZES ========================= */

.icon-sm { width: 30px; height: 30px; }
.icon-md { width: 40px; height: 40px; }
.icon-lg { width: 70px; height: 70px; }
.icon-xl { width: 100px; height: 100px; }

.icon-primary { fill: var(--primary-color); }
.icon-accent { fill: var(--accent-color); }


/* ========================= FEATURES & FAQ ========================= */
.features, .faq {
  max-width: 1200px;  /* container width */
  margin: 40px auto;  /* center horizontally */
  padding: 0 16px;    /* inner spacing */
  box-sizing: border-box;
  overflow-x: hidden;
}

.feature-grid, .faq-grid {
  display: grid;
  gap: 20px;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card, .faq-item {
  position: relative;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: clamp(1.5rem, 2vw, 1.5rem);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  will-change: transform;
  overflow: hidden;
  margin: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.feature-card::before, .faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 20px;
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400% 400%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.feature-card:hover::before, .faq-item:hover::before {
  opacity: 1;
  animation: glowing-border 1.5s linear infinite;
}

.feature-card:hover, .faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-card h3, .faq-question {
  color: #66FF00;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-card p, .faq-answer {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  font-weight: 400;
  word-break: break-word;
  overflow-wrap: break-word;
}

@keyframes glowing-border {
  100% { background-position: 100% 50%; }
}

/* ========================= MEDIA QUERIES ========================= */

/* ========================= RESPONSIVE GRID ========================= */

@media (max-width: 359px) {
  .tools-grid { grid-template-columns: 1fr; }
}

@media (min-width: 360px) and (max-width: 599px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 600px) and (max-width: 799px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 800px) and (max-width: 1099px) {
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Mobile Typography & Layout (≤768px) */
@media (max-width: 768px) {
  h1, h2 { font-size: 2rem; }
  .eye-catching-subheading {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: justify;
  }
  .upload-container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 5px;
  }
  .upload-box {
    padding: 10px 8px !important;
    transform: scale(0.95);
  }
  .upload-icon {
    font-size: 28px !important;
    margin-bottom: 10px;
  }
  .upload-text {
    font-size: 13px !important;
    margin-bottom: 8px;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  h1, h2 { font-size: 1.8rem; }
  .eye-catching-subheading {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: justify;
  }
}

/* ========================= FEATURE GRID (FIXED) ========================= */

/* Mobile */
@media (max-width: 576px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Tablet & ALL Large Devices — MAX 2 ONLY */
@media (min-width: 577px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================= FAQ GRID (FIXED) ========================= */

/* All devices default → 1 */
@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* Large devices → MAX 2 */
@media (min-width: 1025px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
