* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  color: #0073aa;
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #0073aa;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #0073aa;
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Tools Section */
.tools-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.tools-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.tool-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tool-card h3 {
  color: #0073aa;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.tool-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.tool-card .btn {
  background: #0073aa;
  color: white;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* Tool Pages Specific Styles */
.tool-hero {
  background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.tool-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tool-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.tool-interface {
  background: #f8f9fa;
  padding: 4rem 0;
}

.tool-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0073aa;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.results-container {
  max-width: 800px;
  margin: 2rem auto 0;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.results-container h3 {
  color: #0073aa;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 1.1rem;
}

.analysis-result {
  padding: 1rem 0;
}

.analysis-result h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.security-details p,
.performance-details p,
.compatibility-details p {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 3px;
}

.security-details p:contains("✅"),
.performance-details p:contains("✅"),
.compatibility-details p:contains("✅") {
  background: #d4edda;
  color: #155724;
}

.security-details p:contains("⚠️"),
.performance-details p:contains("⚠️"),
.compatibility-details p:contains("⚠️") {
  background: #fff3cd;
  color: #856404;
}

.security-details p:contains("❌"),
.performance-details p:contains("❌"),
.compatibility-details p:contains("❌") {
  background: #f8d7da;
  color: #721c24;
}

.analysis-result ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.analysis-result li {
  margin-bottom: 0.5rem;
  color: #666;
}

.progress-bar {
  background: #e9ecef;
  border-radius: 10px;
  height: 20px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 10px;
  transition: width 0.5s ease;
}

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

.metric-card {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

.metric-card h5 {
  color: #0073aa;
  margin-bottom: 0.5rem;
}

.metric-card .value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
}

.main-content h2 {
  color: #0073aa;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.main-content h3 {
  color: #333;
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem 0;
  border-left: 4px solid #0073aa;
  padding-left: 1rem;
}

.main-content p {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

/* Guides Section */
.guides-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.guides-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.guide-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.guide-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.guide-card h3 {
  padding: 1rem 1.5rem 0.5rem;
  color: #0073aa;
  font-size: 1.3rem;
}

.guide-card p {
  padding: 0 1.5rem;
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  display: block;
  padding: 1rem 1.5rem;
  color: #0073aa;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #eee;
  transition: background 0.3s;
}

.read-more:hover {
  background: #f8f9fa;
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  background: #0073aa;
  color: white;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.testimonial {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.testimonial p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial cite {
  font-weight: 600;
  opacity: 0.8;
}

/* Newsletter */
.newsletter {
  padding: 4rem 0;
  background: #f8f9fa;
  text-align: center;
}

.newsletter h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.newsletter p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0.8rem 2rem;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #0073aa;
}

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

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

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #0073aa;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tool-hero h2 {
    font-size: 2rem;
  }
  
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .tools-section,
  .content-section,
  .guides-section,
  .testimonials,
  .newsletter,
  .tool-interface {
    padding: 2rem 0;
  }
  
  .tool-form {
    padding: 1.5rem;
  }
}