/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #10b981;
  --text-color: #334155;
  --text-light: #64748b;
  --background: #f8fafc;
  --background-dark: #0f172a;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 85%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header and Navigation */
header {
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 9rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo img {
  margin-right: 0.5rem;
  height: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg);
  width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: 0.375rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 99;
  padding: 0.5rem 0;
  max-height: 70vh;
  overflow-y: auto;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-color);
}

.dropdown-menu a:hover {
  color: var(--primary-color);
}

.login-btn {
  padding: 0.5rem 1.25rem;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  padding: 4rem 9rem;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--background-dark);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-content .btn {
  margin-right: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Tools section */
.tools-section {
  padding: 4rem 9rem;
  background-color: var(--card-bg);
}

.tools-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--background-dark);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.tool-card {
  display: block;
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tool-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 0.5rem;
}

.tool-icon img {
  width: 32px;
  height: 32px;
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--background-dark);
}

.tool-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.use-tool {
  color: var(--primary-color);
  font-weight: 600;
}

.all-tools-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 2rem;
  border-radius: 0.5rem;
}

.all-tools-banner h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.all-tools-banner p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.all-tools-banner .btn {
  background-color: white;
  color: var(--primary-color);
}

.all-tools-banner .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: white;
  padding: 3rem 9rem 1rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  margin-right: 0.5rem;
  height: 2rem;
  filter: brightness(0) invert(1);
}

.footer-menus {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  flex: 1;
  justify-content: space-between;
}

.menu h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: white;
}

.menu ul li {
  margin-bottom: 0.5rem;
}

.menu a {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom a {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content .btn {
    margin-bottom: 1rem;
  }
  
  .footer-menus {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }
  
  .dropdown:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-main {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-menus {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .nav-links {
    order: 0;
    width: auto;
    margin-top: 0;
  }
  
  .login-btn {
    margin-top: 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .tools-section {
    padding: 2rem 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Mobile menu for very small screens */
@media (max-width: 480px) {
  .navbar {
    position: relative;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    margin-top: 0.5rem;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  /* You would need to add a hamburger menu toggle with JavaScript */
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
/* URL Slug Generator Tool Styles - Body Only */
.tool-main {
    padding: 2.5rem;
    padding-left: 100px;
    padding-right: 100px;
}

.tool-header {
    background: linear-gradient(120deg, #4361ee, #7209b7);
    color: white;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.tool-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.tool-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.tool-form-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-form {
    display: flex;
    flex-direction: column;
}

.tool-form label {
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #212529;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.tool-form input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.tool-form input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.char-count {
    position: absolute;
    right: 15px;
    bottom: -25px;
    font-size: 0.9rem;
    color: #6c757d;
}

.options-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.options-panel h3 {
    margin-bottom: 1rem;
    color: #4361ee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.option-group select, .option-group input {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.btn {
    background: linear-gradient(to right, #4361ee, #7209b7);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    background: linear-gradient(to right, #3a56d4, #651fa3);
}

.btn:active {
    transform: translateY(0);
}

.tool-result {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border-left: 4px solid #4cc9f0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-result h3 {
    color: #212529;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-result h3::before {
    content: "✓";
    color: #4cc9f0;
    font-size: 1.5rem;
}

.slug-output {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    word-break: break-all;
    position: relative;
    border: 1px dashed #4cc9f0;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4cc9f0;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #3ab7e0;
}

.history-section {
    margin-top: 3rem;
}

.history-section h3 {
    margin-bottom: 1rem;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-list {
    display: grid;
    gap: 1rem;
}

.history-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #4361ee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-content {
    flex: 1;
}

.history-slug {
    font-family: 'Courier New', monospace;
    color: #4361ee;
    font-weight: 500;
}

.history-original {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
}

.history-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
}

.history-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4361ee;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    color: #212529;
}

.feature-card p {
    color: #6c757d;
}

/* Animation for slug generation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header {
        padding: 1.5rem;
    }
    
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .tool-main {
        padding: 1.5rem;
    }
    
    .tool-form-section, .tool-result {
        padding: 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .slug-output {
        font-size: 1rem;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .history-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }
}
