       :root {
    --primary-gradient: linear-gradient(135deg, #d00000 0%, #ff4d4d 100%);
    --secondary-gradient: linear-gradient(90deg, #b81414, #ee2222);
    --secondary-hover: linear-gradient(90deg, #940d0d, #d40606);
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --bg-light: #f8fafc;
    --border-light: rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 2000;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 2rem;
    height: 2rem;
}

.logo h1 {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    font-weight: 800;
    color: var(--text-dark);
}

.button-group-1, .button-group-2 {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.merge-btn, .compress-btn, .word-to-pdf-btn {
    background: white;
    color: var(--text-dark);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    min-height: 44px;
}

.convert-pdf-btn, .all-tools-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    min-height: 44px;
}

.merge-btn:hover, .compress-btn:hover, .word-to-pdf-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.convert-pdf-btn:hover, .all-tools-btn:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Popup Menu Styles */
.all-tools-popup, .convert-pdf-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
}

.all-tools-menu, .convert-pdf-menu {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    width: calc(100% - 2rem);
    padding: 1.5rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
    -webkit-overflow-scrolling: touch;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-popup {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tool-group {
    margin-bottom: 1rem;
}

.tool-group h3 {
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d00000;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    color: var(--text-dark);
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #d00000;
    padding-left: 1rem;
}

.dropdown-item.active {
    background: var(--primary-gradient);
    color: white;
}

.icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.fa-chevron-down {
    font-size: 0.8rem;
}

/* Hero Section */
.slider_section {
    background: var(--primary-gradient);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.slider_section::before,
.slider_section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.slider_section::before {
    width: 220px;
    height: 220px;
    top: 10%;
    left: -50px;
}

.slider_section::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -80px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

.carousel-inner .carousel-item {
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.detail-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.detail-box.show {
    opacity: 1;
    transform: translateY(0);
}

.detail-box h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: white;
    text-shadow: 0 3px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.detail-box p {
    color: white;
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.95;
    margin: 1.5rem 0;
    max-width: 650px;
}

.btn-box a {
    padding: 0.8rem 1.8rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-box .btn-1 {
    background: var(--secondary-gradient);
    color: white;
    margin-right: 1rem;
    box-shadow: 0 4px 20px rgba(255,0,0,0.5);
}

.btn-box .btn-2 {
    background: rgba(255,255,255,0.1);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(6px);
}

.btn-box a:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.img-box img {
    max-width: 90%;
    height: auto;
    animation: floatImage 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
    transition: transform 0.5s ease;
}

.img-box img:hover {
    transform: scale(1.05);
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Tablet and larger mobile devices (600px to 768px) */
@media (max-width: 768px) {
    .header {
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
    }

    .logo h1 {
        font-size: clamp(1.1rem, 3.5vw, 1.2rem);
    }

    .merge-btn, .compress-btn, .word-to-pdf-btn, .convert-pdf-btn, .all-tools-btn {
        padding: 0.4rem 0.8rem;
        font-size: clamp(0.8rem, 2.2vw, 0.85rem);
        min-height: 40px;
    }

    .button-group-1, .button-group-2 {
        gap: 0.4rem;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .slider_section {
        padding: 2.5rem 1rem;
    }

    .detail-box h1 {
        font-size: clamp(2rem, 5.5vw, 3rem);
    }

    .detail-box p {
        font-size: clamp(0.95rem, 2.8vw, 1.15rem);
    }

    .btn-box a {
        padding: 0.6rem 1.2rem;
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }

    .img-box img {
        max-width: 80%;
    }
}

/* Small mobile devices (<600px) */
@media (max-width: 600px) {
    .container {
        padding: 0.5rem;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .logo img {
        width: 1.8rem;
        height: 1.8rem;
    }

    .logo h1 {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }

    .merge-btn, .compress-btn, .word-to-pdf-btn, .convert-pdf-btn, .all-tools-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        font-size: clamp(0.75rem, 2.5vw, 0.8rem);
        min-height: 44px;
    }

    .button-group-1, .button-group-2 {
        width: 100%;
        flex-direction: column;
        gap: 0.3rem;
    }

    .all-tools-menu, .convert-pdf-menu {
        padding: 1rem;
        width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .close-popup {
        font-size: 1rem;
    }

    .detail-box h1 {
        font-size: clamp(1.7rem, 4.5vw, 2.4rem);
        text-align: center;
    }

    .detail-box p {
        text-align: center;
        margin: 1rem auto;
    }

    .btn-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .btn-box .btn-1 {
        margin-right: 0;
    }

    .img-box {
        text-align: center;
        margin-top: 1.5rem;
    }

    .img-box img {
        max-width: 70%;
    }
}

/* Laptop screens (>=1024px) */
@media (min-width: 1024px) {
    .header {
        gap: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .logo {
        margin-right: 1.5rem;
    }

    .merge-btn, .compress-btn, .word-to-pdf-btn, .convert-pdf-btn, .all-tools-btn {
        padding: 0.4rem 0.8rem;
        font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    }

    .tool-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .detail-box {
        margin-top: -110px; /* Move heading up slightly more on laptops */
    }

    .img-box img {
        margin-top: -110px; /* Move image up slightly more on laptops */
    }
}

/* Section Styling */
.pdf-tools {
  background: linear-gradient(135deg, #fff5f5, #ffeaea); /* Soft red background */
  padding: 80px 20px;
  text-align: center;
}

.section-heading {
  font-size: 2.5rem;
  color: #c70000; /* Strong PDF red */
  margin-bottom: 50px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #c70000;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grid Layout */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Exactly 5 per row on desktop */
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Card Styling */
.tool-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(199, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  border-top: 4px solid transparent;
}

.tool-card:hover {
  transform: translateY(-8px);
  border-top: 4px solid #c70000;
  box-shadow: 0 15px 30px rgba(199, 0, 0, 0.2);
}

/* Icon Circle */
.icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff4d4d, #c70000); /* Red gradient */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(199, 0, 0, 0.2);
}

.icon-circle img {
  width: 40px;
  height: 40px;
}

.tool-card:hover .icon-circle {
  transform: scale(1.1);
  background: linear-gradient(135deg, #c70000, #ff4d4d);
}

/* Card Content */
.tool-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #c70000;
  margin-bottom: 10px;
}

.tool-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr); /* Tablet view: 3 per row */
  }
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile view: 2 per row */
    gap: 20px;
  }

  .section-heading {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr; /* Single column for small screens */
  }
}
/* Section */
.pdf-work-section {
  padding: 70px 20px;
  background: #fff;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 50px;
}

/* Grid Layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.pdf-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pdf-card:hover img {
  transform: scale(1.05);
}

.pdf-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230, 57, 70, 0.2); /* Red overlay for branding */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pdf-card:hover::before {
  opacity: 1;
}

/* Overlay Content */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  text-align: left;
}

.card-overlay h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-overlay p {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
  margin-bottom: 15px;
}

/* Arrow */
.arrow {
  font-size: 1.2rem;
  color: #fff;
  transition: transform 0.3s ease;
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.pdf-card:hover .arrow {
  transform: translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .pdf-card img {
    height: 220px;
  }

  .card-overlay h3 {
    font-size: 1rem;
  }

  .card-overlay p {
    font-size: 0.85rem;
  }
}
 .faq-section {
        background: #ffeaea;
        padding: 60px 0;
        margin: 50px auto;
        max-width: 100%;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .faq-title {
        font-size: 2.8rem;
        color: #d32f2f;
        margin-bottom: 30px;
        text-align: center;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .faq-wrapper {
        max-width: 90%;
        margin: 0 auto;
        padding: 0 10px;
    }

    .faq-item {
        padding: 25px 35px;
        background: #ffffff;
        border-radius: 12px;
        margin-bottom: 20px;
        border-left: 5px solid #d32f2f;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .faq-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .faq-question {
        font-size: 1.6rem;
        font-weight: 600;
        color: #d32f2f;
        margin-bottom: 15px;
        transition: color 0.3s ease;
    }

    .faq-answer {
        font-size: 1.1rem;
        color: #555;
        line-height: 1.7;
        transition: color 0.3s ease;
    }

    @media (max-width: 768px) {
        .faq-title {
            font-size: 2.2rem;
        }

        .faq-item {
            padding: 20px;
        }
    }

    @media (max-width: 480px) {
        .faq-title {
            font-size: 1.8rem;
        }

        .faq-item {
            padding: 15px;
        }
    }
    /* Footer Base */
.footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #d1d5db;
  padding-top: 60px;
  padding-bottom: 20px;
  border-top: 2px solid #b91c1c; /* Dark Red Border */
  font-family: 'Inter', sans-serif;
}

/* Footer Container */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* Footer Sections */
.footer-section {
  text-align: left;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 15px;
}

.footer-text {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* Headings */
.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background: #ef4444;
  bottom: -6px;
  left: 0;
  border-radius: 2px;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #d1d5db;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ef4444;
  padding-left: 5px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  border: 1px solid #b91c1c;
}

.social-icon:hover {
  background: #b91c1c;
  color: #fff;
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-logo {
    font-size: 1.6rem;
  }

  .footer-heading {
    font-size: 1rem;
  }

  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
