:root {
  --primary-yellow: #FFD700;
  --dark-yellow: #FFC000;
  --light-yellow: #FFF9C4;
  --dark-bg: #1A1A1A;
  --darker-bg: #121212;
  --text-color: #F5F5F5;
  --text-dark: #333;
  --accent: #FF6B00;
  --success: #4CAF50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header {
  background: linear-gradient(135deg, var(--dark-yellow), var(--accent));
  color: var(--darker-bg);
  padding: 2rem;
  text-align: center;
  border-radius: 0 0 20px 20px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.byline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--darker-bg);
}

.main-nav {
  margin-bottom: 2rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.nav-item a {
  display: block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-yellow);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-item a:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.about-btn {
  background-color: var(--success) !important;
  color: white !important;
}

.guide-section {
  background-color: var(--darker-bg);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  border-left: 5px solid var(--primary-yellow);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.guide-section h2 {
  color: var(--primary-yellow);
  font-size: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-yellow);
}

.html-tags {
  margin-bottom: 2rem;
}

.html-tags h2 {
  color: var(--primary-yellow);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.tag-card {
  background-color: var(--darker-bg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.tag-card h3 {
  color: var(--primary-yellow);
  font-family: 'Roboto Mono', monospace;
  margin-bottom: 0.5rem;
}

.code-block {
  background-color: #2D2D2D;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Roboto Mono', monospace;
  color: #F8F8F2;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.full-example {
  background-color: rgba(255, 215, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px dashed var(--primary-yellow);
}

.css-section {
  margin-bottom: 3rem;
}

.css-section h2 {
  color: var(--primary-yellow);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.css-card {
  background-color: var(--darker-bg);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
}

.css-card h3 {
  color: var(--primary-yellow);
  margin-bottom: 1rem;
}

.steps-list {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.steps-list li {
  margin-bottom: 0.5rem;
}

.note-box {
  background-color: rgba(255, 107, 0, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 5px 5px 0;
}

.css-structure {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.css-structure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.css-explanations {
  flex: 1;
  min-width: 300px;
}

.css-term {
  margin-bottom: 1.5rem;
}

.css-term h4 {
  color: var(--primary-yellow);
  margin-bottom: 0.3rem;
}

.learn-more-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-yellow);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-align: center;
}

.learn-more-btn:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.contact-section {
  text-align: center;
  padding: 2rem;
  background-color: var(--darker-bg);
  border-radius: 10px;
  margin-bottom: 2rem;
}

.contact-section h2 {
  color: var(--primary-yellow);
  margin-bottom: 1rem;
}

.email {
  font-size: 1.2rem;
  margin: 1rem 0;
}

.email span {
  color: var(--primary-yellow);
  font-weight: 600;
}

.linkedin-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #0A66C2;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.linkedin-btn:hover {
  background-color: #004182;
  transform: translateY(-2px);
}

.main-footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--darker-bg);
  border-radius: 10px 10px 0 0;
}

@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .css-structure {
    flex-direction: column;
  }
  
  .guide-section, .tag-card, .css-card {
    padding: 1.5rem;
  }
}
