* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background: #f8f9fa;
margin: 0;
padding: 0;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Header & Navigation */
header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
padding: 1rem 0;
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

.logo {
font-size: 1.8rem;
font-weight: bold;
color: #667eea !important;
text-decoration: none;
}

.logo:hover {
color: #5a6fd8 !important;
}

.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
flex-wrap: wrap;
}

.nav-menu a {
text-decoration: none;
color: #333 !important;
font-weight: 500;
transition: color 0.3s ease;
}

.nav-menu a:hover {
color: #667eea !important;
}

.nav-menu a:visited {
color: #333 !important;
}

.nav-menu a:visited:hover {
color: #667eea !important;
}

.mobile-menu-toggle {
display: none;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #333;
}

/* Breadcrumb */
.breadcrumb {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 1rem 0;
margin-top: 80px;
}

.breadcrumb nav {
padding: 0;
}

.breadcrumb ol {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}

.breadcrumb a {
color: white !important;
text-decoration: none;
}

.breadcrumb a:hover {
text-decoration: underline;
color: #f0f0f0 !important;
}

.breadcrumb a:visited {
color: white !important;
}

/* Hero Section */
.hero {
padding: 6rem 0 4rem;
text-align: center;
color: white;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
position: relative;
}

.hero h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
color: white;
}

.hero p {
font-size: 1.3rem;
margin-bottom: 2rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
color: white;
}

.cta-button {
display: inline-block;
background: #ff6b6b;
color: white !important;
padding: 1rem 2rem;
text-decoration: none;
border-radius: 50px;
font-weight: bold;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
color: white !important;
}

.cta-button:visited {
color: white !important;
}

/* Main Content */
main {
background: white;
margin-top: 0;
border-radius: 0;
min-height: 100vh;
position: relative;
z-index: 1;
}

.content-section {
padding: 4rem 0;
}

.section-title {
font-size: 2.5rem;
text-align: center;
margin-bottom: 3rem;
color: #333;
position: relative;
}

.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 3px;
background: linear-gradient(45deg, #667eea, #764ba2);
}

/* Tool Categories */
.tool-category {
margin-bottom: 4rem;
padding: 2rem 0;
}

.category-title {
font-size: 2rem;
margin-bottom: 2rem;
color: #667eea;
display: flex;
align-items: center;
gap: 1rem;
}

.category-icon {
width: 40px;
height: 40px;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.2rem;
}

.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
}

/* Remove the slow scroll animations - replace existing card observer styles */
.tool-card {
background: white;
border-radius: 15px;
padding: 1.5rem;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid #f0f0f0;
opacity: 1; /* Remove opacity animation */
transform: translateY(0); /* Remove transform animation */
}


.tool-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tool-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}

.tool-icon {
width: 50px;
height: 50px;
border-radius: 10px;
object-fit: cover;
}

.tool-title {
font-size: 1.2rem;
font-weight: bold;
color: #333 !important;
text-decoration: none;
flex: 1;
transition: color 0.3s ease;
}

.tool-title:hover {
color: #667eea !important;
text-decoration: none;
}

.tool-title:visited {
color: #333 !important;
}

.tool-title:visited:hover {
color: #667eea !important;
}

.tool-description {
color: #666;
line-height: 1.6;
margin-bottom: 1rem;
}

.tool-link {
display: inline-block;
background: linear-gradient(45deg, #667eea, #764ba2);
color: white !important;
padding: 0.5rem 1rem;
text-decoration: none;
border-radius: 25px;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.tool-link:hover {
opacity: 0.9;
transform: translateY(-1px);
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
color: white !important;
text-decoration: none;
}

.tool-link:visited {
color: white !important;
}

.tool-link:visited:hover {
color: white !important;
}

/* Features Section */
.features {
background: #f8f9fa;
padding: 4rem 0;
}

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}

.feature-card {
background: white;
padding: 2rem;
border-radius: 15px;
text-align: center;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
color: #333;
margin-bottom: 1rem;
}

.feature-card p {
color: #666;
}

.feature-icon {
width: 80px;
height: 80px;
margin: 0 auto 1rem;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
color: white;
}

/* How It Works */
.how-it-works {
padding: 4rem 0;
}

.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 3rem;
}

.step {
text-align: center;
position: relative;
}

.step h3 {
color: #333;
margin-bottom: 1rem;
}

.step p {
color: #666;
}

.step-number {
width: 60px;
height: 60px;
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: bold;
margin: 0 auto 1rem;
}

/* FAQ Section */
.faq {
background: #f8f9fa;
padding: 4rem 0;
}

.faq-item {
background: white;
margin-bottom: 1rem;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
background: none;
border: none;
padding: 1.5rem;
width: 100%;
text-align: left;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
color: #333;
}

.faq-question:hover {
background: #3f7dba;
}

.faq-question span {
color: #667eea;
font-size: 1.2rem;
}

.faq-answer {
padding: 0 1.5rem 1.5rem;
display: none;
color: #666;
}

.faq-answer.active {
display: block;
}

/* Article Section */
.article {
padding: 4rem 0;
max-width: 800px;
margin: 0 auto;
}

.article h2 {
color: #333;
margin-bottom: 1rem;
}

.article h3 {
color: #333;
margin: 2rem 0 1rem 0;
}

.article p {
margin-bottom: 1.5rem;
line-height: 1.8;
color: #555;
}

.article ul {
margin-bottom: 1.5rem;
padding-left: 2rem;
}

.article li {
color: #555;
margin-bottom: 0.5rem;
}

/* Footer */
footer {
background: #333;
color: white;
padding: 3rem 0 1rem;
text-align: center;
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}

.footer-section h3 {
margin-bottom: 1rem;
color: #667eea;
}

.footer-section a {
color: #ccc !important;
text-decoration: none;
display: block;
margin-bottom: 0.5rem;
transition: color 0.3s ease;
}

.footer-section a:hover {
color: white !important;
}

.footer-section a:visited {
color: #ccc !important;
}

.footer-section a:visited:hover {
color: white !important;
}

/* Cookie Notice */
.cookie-notice {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #333;
color: white;
padding: 1rem;
text-align: center;
z-index: 1001;
transform: translateY(100%);
transition: transform 0.3s ease;
}

.cookie-notice.show {
transform: translateY(0);
}

.cookie-notice p {
color: white;
margin-bottom: 1rem;
}

.cookie-notice a {
color: #667eea !important;
}

.cookie-notice a:hover {
color: #5a6fd8 !important;
}

.cookie-notice button {
background: #667eea;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 5px;
margin-left: 1rem;
cursor: pointer;
transition: background 0.3s ease;
}

.cookie-notice button:hover {
background: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 768px) {
.nav-menu {
display: none;
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
padding: 1rem;
}

.nav-menu.active {
display: flex;
}

.mobile-menu-toggle {
display: block;
}

.hero h1 {
font-size: 2.5rem;
}

.tools-grid {
grid-template-columns: 1fr;
}

.tool-card {
margin: 0 10px;
}
}

@media (max-width: 480px) {
.hero h1 {
font-size: 2rem;
}

.hero p {
font-size: 1.1rem;
}

.container {
padding: 0 15px;
}

.section-title {
font-size: 2rem;
}

.category-title {
font-size: 1.5rem;
flex-direction: column;
text-align: center;
gap: 0.5rem;
}

.tool-card {
padding: 1rem;
}

.tool-header {
flex-direction: column;
text-align: center;
gap: 0.5rem;
}

.tool-title {
text-align: center;
}

.cta-button {
padding: 0.8rem 1.5rem;
font-size: 0.9rem;
}
}

@media (max-width: 320px) {
.hero h1 {
font-size: 1.8rem;
}

.container {
padding: 0 10px;
}

.tool-card {
padding: 1rem;
margin: 0 5px;
}

.tools-grid {
gap: 1rem;
}
}

/* Print styles */
@media print {
.cookie-notice,
header,
.cta-button,
footer {
display: none !important;
}

.tool-card {
break-inside: avoid;
margin-bottom: 1rem;
}

body {
background: white !important;
color: black !important;
}

.tool-link {
background: none !important;
color: black !important;
border: 1px solid black;
}

.tool-title {
color: black !important;
}
}

/* Accessibility improvements */
.skip-link:focus {
top: 6px !important;
}

@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
.tool-card {
border: 2px solid #000;
}

.cta-button {
border: 2px solid #000;
}

.tool-link {
border: 2px solid white;
}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #1a1a1a;
--text-color: #ffffff;
--card-bg: #2d2d2d;
}

body {
background: var(--bg-color) !important;
color: var(--text-color) !important;
}

.tool-card {
background: var(--card-bg) !important;
color: var(--text-color) !important;
border-color: #444;
}

header {
background: rgba(45, 45, 45, 0.95) !important;
}

.nav-menu a {
color: var(--text-color) !important;
}

.nav-menu a:visited {
color: var(--text-color) !important;
}

.tool-title {
color: var(--text-color) !important;
}

.tool-title:visited {
color: var(--text-color) !important;
}

.tool-description {
color: #ccc !important;
}

.section-title {
color: var(--text-color) !important;
}

.article h2,
.article h3 {
color: var(--text-color) !important;
}

.article p,
.article li {
color: #ccc !important;
}

.feature-card {
background: var(--card-bg) !important;
color: var(--text-color) !important;
}

.feature-card h3 {
color: var(--text-color) !important;
}

.feature-card p {
color: #ccc !important;
}

.step h3 {
color: var(--text-color) !important;
}

.step p {
color: #ccc !important;
}

.faq-item {
background: var(--card-bg) !important;
}

.faq-question {
color: var(--text-color) !important;
}

.faq-answer {
color: #ccc !important;
}

.features,
.faq {
background: #222 !important;
}

main {
background: var(--bg-color) !important;
}
}

/* Focus styles for better accessibility */
a:focus,
button:focus {
outline: 2px solid #667eea;
outline-offset: 2px;
}

.tool-link:focus {
outline: 2px solid white;
outline-offset: 2px;
}

/* Ensure all interactive elements have proper contrast */
.tool-link:focus:not(:focus-visible) {
outline: none;
}

.tool-link:focus-visible {
outline: 2px solid white;
outline-offset: 2px;
}

/* Additional link state fixes */
a {
color: inherit;
text-decoration: none;
}

a:visited {
color: inherit;
}

/* Specific overrides for navigation */
.nav-menu li a,
.breadcrumb a,
.footer-section a {
transition: color 0.3s ease;
}

/* Ensure proper contrast for all text elements */
h1, h2, h3, h4, h5, h6 {
color: inherit;
}

p, span, div {
color: inherit;
}

/* Fix any remaining color inheritance issues */
.tool-card * {
color: inherit;
}

.tool-title,
.tool-link {
color: initial;
}