/* CSS Custom Properties */
:root {
  /* Colors */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --card-padding: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: var(--transition-normal);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  height: 2rem;
  width: auto;
}
.logo-text{
    text-decoration: none;
    font-size: 21px;
    font-weight: bold; 
}


.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.25rem;
}

.nav-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--gray-700);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 4rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Container */
.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-box {
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  background: transparent;
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-btn {
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.filter-select {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Quick Access Tools */
.quick-access {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-900);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.quick-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-700);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.quick-tool:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tool-name {
  font-weight: 500;
  text-align: center;
  font-size: 0.9rem;
}

/* Featured Tools */
.featured-tools {
  /*padding: var(--section-padding);*/
  margin-top: 3rem;
    
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tool-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon-large {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary-color);
}

.pricing-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-badge.free {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.pricing-badge.freemium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.pricing-badge.free-trial {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.pricing-badge.paid {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

.tool-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.tool-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
}

.tool-link {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: var(--transition-fast);
}
.tool-link-title {
    display: inline-flex;
    color: white;
    text-decoration: none;
}


.tool-link:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.load-more-container {
  text-align: center;
   margin-bottom: 2rem;
}

.load-more-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.load-more-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Categories */
.categories {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.category-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.tool-count {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary-light);
}

.footer-logo {
  height: 2rem;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1rem;
  text-align: center;
  color: var(--gray-500);
}


.tool-header-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  justify-content: space-between;
  align-items: flex-start;
}

.tool-info-section {
  flex: 0 0 50%;
  min-width: 300px;
}

.tool-video-section {
  flex: 0 0 49%;
  min-width: 260px;
}

.no-video .tool-info-section {
  flex: 0 0 100%;
  max-width: 100%;
}

.no-video .tool-video-section {
  display: none;
}

.full-video .tool-info-section {
  flex: 0 0 100%;
  max-width: 100%;
}

.full-video .tool-video-section {
  flex: 0 0 100%;
  max-width: 100%;
  margin-top: 20px;
}




@media (max-width: 768px) {
  .tool-info-section,
  .tool-video-section {
    flex: 100%;
  }
  .tool-video-section iframe {
    height: 200px;
  }
}



/* إخفاء القائمة على الشاشات الصغيرة */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: white;
    padding: 10px;
    position: absolute;
    top: 60px; /* حسب ارتفاع النافبار */
    right: 0;
    left: 0;
    z-index: 999;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
  }
}

/* على الشاشات الكبيرة نظهر القائمة دائمًا */
@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
    gap: 15px;
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }
}





/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .filters-row {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .quick-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-card {
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* RTL (Right-to-Left) Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
  margin-left: 1rem;
}
.card-mine{
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin: 30px;
    padding: 0px 5px 25px 5px;
}

.cat_style{
    color: white;
    text-decoration: none;
}
.coupon-section{
    margin: 1rem 0px 0rem 0px;
    background: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--gray-700);
  font-weight: 500;
}

.language-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.language-icon {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.8;
}

.language-text {
  font-size: 0.875rem;
  font-weight: 600;
}

.dropdown-arrow {
  transition: var(--transition-fast);
}

.language-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-fast);
}

.language-dropdown.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--gray-100);
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: var(--gray-50);
}

.language-option.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.language-option .flag {
  font-size: 1.25rem;
}

.language-option .lang-name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* RTL Navigation */
[dir="rtl"] .nav-container {
  direction: rtl;
}

[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}

[dir="rtl"] .language-dropdown {
  margin-left: 0;
  margin-right: 1rem;
}

[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

/* RTL Typography */
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title {
  text-align: center;
}

[dir="rtl"] .hero-subtitle {
  text-align: center;
}

/* RTL Search Container */
[dir="rtl"] .search-input-wrapper {
  direction: rtl;
}

[dir="rtl"] .search-input {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .search-btn {
  order: -1;
  margin-right: 0;
  margin-left: 0.5rem;
}

/* RTL Filters */
[dir="rtl"] .filters-row {
  direction: rtl;
}

[dir="rtl"] .filter-select {
  text-align: right;
  direction: rtl;
  background-position: left 0.75rem center;
  padding-left: 2.5rem;
  padding-right: 1rem;
}




/* top Tools */
.top-tools {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-900);
}

.top-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 10px auto;
}
.top-title {
    font-size: 1rem;
    text-align: center;
    margin: 4rem 0 2rem 0;
    color: #b2b2b3;
    text-align: center;
}

.quick-top-tool {
     display: flex; 
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0.2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.quick-top-tool:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tool-icon-top {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tool-name-top {
  font-weight: 500;
  text-align: center;
  font-size: 0.9rem;
}


/*share icons styles*/

#----- social ----#

.effect {
  width: 100%;
  padding: 50px 0px 70px 0px;
  background-color: #212121;
}
.effect h2 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 3px;
}
.effect:nth-child(2) {
/*  margin-top: 50px;*/
}
.effect:nth-child(2n+1) {
  /*background-color: #fff;*/
}
.effect:nth-child(2n+1) h2 {
  color: #212121;
}
.effect .buttons {
  /*margin-top: 50px;
  display: -webkit-box;
  display: -ms-flexbox;*/
  display: flex; 
 /* -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;*/
}
.effect a:last-child {
  margin-right: 0px;
}

.btn-background {background: unset;border: unset;}
.btn-rate-a {width: 36px;height: 36px;margin-right: 4px;}

/*common link styles !!!YOU NEED THEM*/
.effect {
  /*display: flex; !!!uncomment this line !!!*/
}
.effect a {
  text-decoration: none !important;
  color: #fff;
  width: 50px;
  height: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;  
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 10px;
  margin-right: 20px;
  font-size: 25px;
  overflow: hidden;
  position: sticky;
}
.effect a i {
  position: relative;
  z-index: 3;
}
.effect a.fb {
  background-color: #3b5998;
}
.effect a.tw {
  background-color: #00aced;
}
.effect a.g-plus {
  background-color: #dd4b39;
}
.effect a.dribbble {
  background-color: #ea4c89;
}
.effect a.pinterest {
  background-color: #cb2027;
}
.effect a.insta {
  background-color: #bc2a8d;
}
.effect a.youtube {
  background-color: #e00c0c;
}
.effect a.in {
  background-color: #007bb6;
}
.effect a.vimeo {
  background-color: #1ab7ea;
}
.effect a.whatsapp {
  background-color: #12cc6d;
}
.effect a.telegram {
  background-color: #0088cc;
}

/* aeneas effect */
.effect.aeneas a {
  -webkit-transition: border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s, -webkit-transform 0.4s linear 0s;
  transition: border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s, -webkit-transform 0.4s linear 0s;
  transition: transform 0.4s linear 0s, border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s;
  transition: transform 0.4s linear 0s, border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s, -webkit-transform 0.4s linear 0s;
}
.effect.aeneas a i {
  -webkit-transition: -webkit-transform 0.4s linear 0s;
  transition: -webkit-transform 0.4s linear 0s;
  transition: transform 0.4s linear 0s;
  transition: transform 0.4s linear 0s, -webkit-transform 0.4s linear 0s;
}
.effect.aeneas a:hover {
  -webkit-transform: rotate(360deg);
          transform: rotate(360deg);
  border-radius: 50%;
}
.effect.aeneas a:hover i {
  -webkit-transform: rotate(-360deg);
          transform: rotate(-360deg);
}

/* jaques effect */
.effect.jaques a {
  -webkit-transition: border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s;
  transition: border-top-left-radius 0.1s linear 0s, border-top-right-radius 0.1s linear 0.1s, border-bottom-right-radius 0.1s linear 0.2s, border-bottom-left-radius 0.1s linear 0.3s;
}


/* RTL Quick Tools */
[dir="rtl"] .quick-tools-grid {
  direction: rtl;
}

[dir="rtl"] .quick-tool {
  text-align: center;
}

/* RTL Tool Cards */
[dir="rtl"] .tools-grid {
  direction: rtl;
}

[dir="rtl"] .tool-card {
  text-align: right;
}

[dir="rtl"] .tool-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .tool-tags {
  justify-content: flex-end;
}

[dir="rtl"] .tool-link {
  align-self: flex-end;
}

/* RTL Categories */
[dir="rtl"] .categories-grid {
  direction: rtl;
}

[dir="rtl"] .category-card {
  text-align: center;
}

/* RTL Footer */
[dir="rtl"] .footer-content {
  direction: rtl;
}

[dir="rtl"] .footer-section {
  text-align: right;
}

[dir="rtl"] .footer-section:first-child {
  text-align: right;
}

/* RTL Responsive Adjustments */
@media (max-width: 768px) {
  [dir="rtl"] .nav-menu {
    flex-direction: column;
    text-align: right;
  }
  
  [dir="rtl"] .language-toggle {
    margin: 0;
    align-self: flex-end;
  }
}

/* RTL Animation Adjustments */
[dir="rtl"] .nav-link::after {
  right: 0;
  left: auto;
}

[dir="rtl"] .tool-card::before {
  right: 0;
  left: auto;
}

/* RTL Font Support */
[dir="rtl"] {
  font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
}

/* Arabic Font Optimization */
[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6 {
  font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
  font-weight: 600;
}

/* RTL Spacing Adjustments */
[dir="rtl"] .container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

[dir="rtl"] .nav-container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* RTL Transition Effects */
[dir="rtl"] .fade-in-up {
  animation: fadeInUpRTL 0.6s ease-out;
}

@keyframes fadeInUpRTL {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RTL Scroll Reveal */
[dir="rtl"] .scroll-reveal {
  transform: translateY(30px);
}

[dir="rtl"] .scroll-reveal.revealed {
  transform: translateY(0);
}

/* Language Transition */
.language-transition {
  transition: all 0.3s ease-in-out;
}

/* RTL Mobile Navigation */
@media (max-width: 768px) {
  [dir="rtl"] .nav-toggle {
    order: -1;
  }
  
  [dir="rtl"] .nav-brand {
    order: 0;
  }
  
  [dir="rtl"] .nav-menu {
    order: 1;
  }
}


/* Tool Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
  background: var(--gray-50);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.breadcrumb-nav a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--primary-dark);
}

.breadcrumb-separator {
  color: var(--gray-400);
}

.breadcrumb-current {
  color: var(--gray-900);
  font-weight: 500;
}

/* Tool Header */
.tool-header {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.tool-header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.tool-icon-container {
  flex-shrink: 0;
}

.tool-icon-large {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.tool-icon-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.tool-info {
  flex: 1;
}

.tool-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;  
}


.tool-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tool-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

.tool-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.views-count {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--gray-700);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

/* Tool Content */
.tool-content {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.main-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.content-section p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
}

/* Applications Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.application-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.application-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.app-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.application-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.application-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.sidebar-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.tool-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.detail-value {
  font-size: 0.875rem;
  color: var(--gray-900);
  font-weight: 600;
}

.similar-tools {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.similar-tool {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--gray-700);
  transition: var(--transition-fast);
  border: 1px solid var(--gray-100);
}

.similar-tool:hover {
  background: var(--gray-50);
  border-color: var(--primary-color);
}

.tool-icon-small {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

.tool-info-small h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
}

.pricing-small {
  font-size: 0.75rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

/* RTL Support for Tool Page */
[dir="rtl"] .tool-header-content {
  flex-direction: row-reverse;
}

[dir="rtl"] .tool-meta {
  flex-direction: row-reverse;
}

[dir="rtl"] .tool-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .content-grid {
  grid-template-columns: 1fr 300px;
  direction: ltr;
}

[dir="rtl"] .main-content {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .sidebar {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .breadcrumb-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .detail-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .similar-tool {
  flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  [dir="rtl"] .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .tool-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  [dir="rtl"] .tool-header-content {
    flex-direction: column;
  }
  
  .tool-icon-large {
    width: 80px;
    height: 80px;
  }
  
  .tool-title {
    font-size: 2rem;
  }
  
  .tool-subtitle {
    font-size: 1rem;
  }
  
  .tool-meta {
    justify-content: center;
    gap: 1rem;
  }
  
  .tool-actions {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .applications-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tool-header {
    padding: 2rem 0;
  }
  
  .tool-content {
    padding: 2rem 0;
  }
  
  .content-section {
    margin-bottom: 2rem;
  }
  
  .content-section h2 {
    font-size: 1.5rem;
  }
  
  .feature-card,
  .application-card {
    padding: 1.5rem;
  }
}



/* RTL Tool Card Image Alignment */
[dir="rtl"] .tool-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .tool-header .tool-icon-wrapper {
  margin-left: 0;
  margin-right: 1rem;
}


