/* 
  Custom CSS for All Tools Page
  TheCoolSymbols 2025
*/

:root {
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-dark: #4F46E5;
  --secondary: #F59E0B;
  --secondary-light: #FBBF24;
  --secondary-dark: #D97706;
  --accent: #EC4899;
  --accent-light: #F472B6;
  --text-dark: #1F2937;
  --text-light: #4B5563;
  --light: #F9FAFB;
  --light-alt: #F3F4F6;
  --white: #FFFFFF;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.g-4 > * {
  padding: 1rem;
}

.col-md-4 {
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-4 {
    width: 33.333333%;
  }
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
}

.nav {
  display: flex;
}

.nav-button-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-button {
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-button:hover, .nav-button.active {
  background-color: var(--primary);
  color: var(--white);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 101;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero-container {
  max-width: 800px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Search Box */
.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: 50px;
  border: none;
  box-shadow: var(--shadow-md);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

/* Category Navigation */
.category-navigation {
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.sticky-nav {
  position: sticky;
  top: 74px;
  z-index: 90;
}

.categories-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-pill {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background-color: var(--light-alt);
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-pill i {
  margin-right: 0.5rem;
}

.category-pill:hover, .category-pill.active {
  background-color: var(--primary);
  color: var(--white);
}

/* Tool Sections */
.tool-section {
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-description {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.tool-card a {
  display: block;
  padding: 1.5rem;
  color: var(--text-dark);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.card-title {
  font-weight: 600;
  text-align: center;
}

.card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Feature Cards */
.feature-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* About Box */
.about-box {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.about-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-box p {
  margin-bottom: 1.5rem;
}

.tool-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tool-category h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.tool-category h4 i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.tools-list {
  list-style: none;
}

.tools-list li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.tools-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-link {
  color: var(--gray-200);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 992px) {  .hamburger-menu {
    display: flex;
  }
  
  .nav-button-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px 30px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }
  
  .nav-button-container.active {
    right: 0;
  }
  
  .nav-button {
    margin: 0.5rem 0;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  /* Add overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  
  /* Adjust header for mobile */
  .header {
    padding: 0.75rem 0;
  }
  
  /* Make category navigation responsive */
  .sticky-nav {
    top: 62px;
  }
  
  .category-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0;
  }
  
  .categories-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .nav-button-container {
    justify-content: center;
  }
  
  .nav-button {
    margin: 0.25rem;
    font-size: 0.9rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .search-input {
    padding: 0.65rem 1rem 0.65rem 2.75rem;
  }
  
  .search-icon {
    left: 0.85rem;
    font-size: 0.9rem;
  }
  
  .categories-container {
    flex-direction: column;
    align-items: center;
  }
  
  .category-pill {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 0.9rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-logo {
    align-items: center;
  }
}

@media (max-width: 576px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-categories {
    grid-template-columns: 1fr;
  }
  
  .hero-description {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
  
  .search-input {
    font-size: 0.85rem;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-description {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
  
  .tool-card a {
    padding: 1.25rem;
  }
  
  .card-icon {
    font-size: 1.75rem;
  }
  
  .card-title {
    font-size: 0.95rem;
  }
  
  .about-box {
    padding: 1.5rem;
  }
  
  .about-box h3 {
    font-size: 1.3rem;
  }
  
  .about-box p {
    font-size: 0.9rem;
  }
}

/* Small phones */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .search-container {
    width: 90%;
  }
  
  .tool-card {
    margin: 0 0.5rem;
  }
}