/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeSpeed;
  background-color: #121212;
  color: #f5f5f5;
}

/* Variables */
:root {
  --primary: #8333E9;
  --secondary: #FF4D79;
  --dark: #121212;
  --light: #f5f5f5;
  --gray: #333333;
  --gray-light: #444444;
  --gradient: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--light);
}

h1 {
  font-size: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary);
}

/* Header */
header {
  background-color: rgba(18, 18, 18, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--light);
  text-transform: uppercase;
}

.logo-svg {
  margin-right: 0.75rem;
}

.main-nav {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  color: var(--light);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--light);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 1)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23151515"/><circle cx="10" cy="10" r="2" fill="%23333"/><circle cx="30" cy="10" r="2" fill="%23333"/><circle cx="50" cy="10" r="2" fill="%23333"/><circle cx="70" cy="10" r="2" fill="%23333"/><circle cx="90" cy="10" r="2" fill="%23333"/><circle cx="10" cy="30" r="2" fill="%23333"/><circle cx="30" cy="30" r="2" fill="%23333"/><circle cx="50" cy="30" r="2" fill="%23333"/><circle cx="70" cy="30" r="2" fill="%23333"/><circle cx="90" cy="30" r="2" fill="%23333"/><circle cx="10" cy="50" r="2" fill="%23333"/><circle cx="30" cy="50" r="2" fill="%23333"/><circle cx="50" cy="50" r="2" fill="%23333"/><circle cx="70" cy="50" r="2" fill="%23333"/><circle cx="90" cy="50" r="2" fill="%23333"/><circle cx="10" cy="70" r="2" fill="%23333"/><circle cx="30" cy="70" r="2" fill="%23333"/><circle cx="50" cy="70" r="2" fill="%23333"/><circle cx="70" cy="70" r="2" fill="%23333"/><circle cx="90" cy="70" r="2" fill="%23333"/><circle cx="10" cy="90" r="2" fill="%23333"/><circle cx="30" cy="90" r="2" fill="%23333"/><circle cx="50" cy="90" r="2" fill="%23333"/><circle cx="70" cy="90" r="2" fill="%23333"/><circle cx="90" cy="90" r="2" fill="%23333"/></svg>');
  background-size: cover;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin-bottom: 0.5rem;
  font-size: 4rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2:after {
  display: none;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: var(--light);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 77, 121, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 121, 0.6);
  color: var(--light);
}

/* Sections */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: var(--gray);
}

/* Sites Section */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.site-card {
  background-color: var(--dark);
  border-radius: 10px;
  overflow: hidden;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.site-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.rating {
  display: flex;
  align-items: center;
  color: var(--secondary);
}

.stars {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.score {
  font-weight: 700;
  font-size: 1.2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 0;
  gap: 0.5rem;
}

.tags span {
  background: var(--gray-light);
  color: var(--light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-visit {
  display: inline-block;
  background: var(--gradient);
  color: var(--light);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  text-align: center;
}

.btn-visit:hover {
  transform: translateY(-2px);
  color: var(--light);
  box-shadow: 0 4px 10px rgba(255, 77, 121, 0.3);
}

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

.tool-card {
  background-color: var(--dark);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  color: var(--light);
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.features span {
  background: var(--gray-light);
  color: var(--light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-tool {
  display: inline-block;
  background: transparent;
  color: var(--secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary);
  margin-top: auto;
  align-self: center;
}

.btn-tool:hover {
  background: var(--gradient);
  color: var(--light);
  border: 2px solid transparent;
}

/* About Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  display: flex;
  align-items: flex-start;
}

.feature-icon {
  color: var(--primary);
  margin-right: 1rem;
  flex-shrink: 0;
}

.feature-text h3 {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0 0;
}

.footer-logo a {
  display: flex;
  align-items: center;
  color: var(--light);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-logo-svg {
  margin-right: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  position: relative;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--gradient);
  border-radius: 1.5px;
}

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

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: #b0b0b0;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--secondary);
}

.copyright {
  margin-top: 3rem;
  padding: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav li {
    margin: 0.75rem 0;
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.25rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .sites-grid, .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}
