/* Global Styles */
:root {
  --primary-color: #FFD700;
  --secondary-color: #00FF7F;
  --dark-bg: #111;
  --darker-bg: #0a0a0a;
  --light-bg: #222;
  --text-color: #fff;
  --text-secondary: #ccc;
  --card-bg: rgba(34, 34, 34, 0.8);
  --shadow-color: rgba(255, 215, 0, 0.3);
}

[data-theme="light"] {
  --primary-color: #6a5acd;
  --secondary-color: #20b2aa;
  --dark-bg: #f5f5f5;
  --darker-bg: #e0e0e0;
  --light-bg: #ffffff;
  --text-color: #333;
  --text-secondary: #666;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow-color: rgba(106, 90, 205, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--darker-bg) 0%, #000 100%);
  z-index: -1;
}

.background-animation::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="none" stroke="%23FFD700" stroke-width="0.5" stroke-opacity="0.1" d="M0,0 L100,100 M100,0 L0,100" /></svg>');
  opacity: 0.1;
  animation: animateBg 60s linear infinite;
}

@keyframes animateBg {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

/* Header Styles */
header {
  background-color: var(--light-bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 28px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle, .menu-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.theme-toggle:hover, .menu-btn:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: scale(1.1);
}

/* Navigation Styles */
nav {
  background: var(--light-bg);
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  z-index: 999;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

nav.active {
  max-height: 500px;
}

nav ul {
  list-style: none;
  padding: 20px;
}

nav ul li {
  margin: 15px 0;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s;
}

nav ul li a:hover, nav ul li a:focus {
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--primary-color);
  padding-left: 15px;
}

/* Hero Section */
.hero {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-image {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
}

.logo-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px var(--primary-color));
  animation: float 6s ease-in-out infinite;
}

.glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
  opacity: 0.3;
  animation: pulse 4s infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0.1; }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 30px 0 0 30px;
  background-color: var(--light-bg);
  color: var(--text-color);
  font-size: 16px;
  outline: none;
}

.search-box button {
  padding: 0 20px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.search-box button:hover {
  background-color: var(--secondary-color);
}

/* Tools Section */
.tools {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-color);
}

.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.category-filter button {
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.category-filter button.active, .category-filter button:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.tool-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
  border-color: var(--primary-color);
}

.tool-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.tool-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.tool-card button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.tool-card button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

/* Features Section */
.features {
  padding: 60px 20px;
  background-color: var(--light-bg);
  text-align: center;
}

.features h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Newsletter Section */
.newsletter {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--darker-bg) 100%);
}

.newsletter h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-color);
}

.newsletter p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 30px 0 0 30px;
  background-color: var(--light-bg);
  color: var(--text-color);
  font-size: 16px;
  outline: none;
}

.newsletter button {
  padding: 0 25px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s;
}

.newsletter button:hover {
  background-color: var(--secondary-color);
}

/* Footer Styles */
footer {
  background-color: var(--darker-bg);
  color: var(--text-color);
  padding: 60px 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

.footer-bottom p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.disclaimer {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  padding: 15px 25px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .tool-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .search-box, .newsletter form {
    flex-direction: column;
  }
  
  .search-box input, .newsletter input {
    border-radius: 30px;
    margin-bottom: 10px;
  }
  
  .search-box button, .newsletter button {
    border-radius: 30px;
    padding: 12px;
  }
}