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

/* Base Styles */
html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #333;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

.section {
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  border-bottom: 3px solid #444;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  background: #222;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transform: translateX(-100%);
  animation: headerSlideIn 1s ease-out forwards;
}

.logo {
  color: #4caf50;
  font-size: 1.5em;
  font-weight: bold;
  opacity: 0;
  animation: fadeInText 1.5s 0.5s ease-out forwards;
}

.menu-toggle {
  display: none;
  background: none;
  color: #ffa500;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

.menu-toggle:focus {
  outline: 2px solid #4caf50;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 15px;
  opacity: 0;
  animation: fadeInText 1.5s 0.8s ease-out forwards;
}

.main-nav a {
  color: #ffa500;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #4caf50;
}

.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
  color: #ffa500;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.dropdown-content {
  position: absolute;
  background: #222;
  min-width: 160px;
  z-index: 1001;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 5px;
  display: none;
}

.dropdown-content li {
  padding: 8px 16px;
}

.dropdown-content a {
  color: #ffa500;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  color: #4caf50;
}

.dropdown:hover .dropdown-content,
.dropdown-content[hidden] {
  display: none;
}

.dropdown-content.visible {
  display: block;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #000, #333);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5em;
  color: #ffa500;
  white-space: nowrap;
  border-right: 3px solid #4caf50;
  animation: blink-cursor 0.5s step-end infinite;
}

.hero-content p {
  font-size: 1.2em;
  color: #4caf50;
  opacity: 0;
  animation: fadeIn 2s 1s forwards;
}

/* Posts */
.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.post-card {
  background: #333;
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  width: 100%;
  max-width: 350px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInPostCard 1.5s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

.post-card h3 {
  font-size: 1.5em;
  color: #4caf50;
  margin: 0 0 10px;
}

.post-card p {
  font-size: 1em;
  color: #ddd;
  margin: 0;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Tools */
.tools-container {
  display: grid;
  gap: 20px;
  padding: 0 20px;
}

.tool-card {
  background: #333;
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 100px;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Contact Links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffa500;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: #4caf50;
}

.contact-icon {
  width: 24px;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 15px;
  background: #222;
  color: #aaa;
}

/* Animations */
@keyframes headerSlideIn {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes blink-cursor {
  50% { border-color: transparent; }
}

@keyframes fadeInPostCard {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #222;
    padding: 10px;
    border-radius: 5px;
  }

  .main-nav ul.visible {
    display: flex;
  }

  .main-nav li {
    margin: 10px 0;
  }

  .dropdown-content {
    position: static;
    background: none;
    padding: 0;
  }

  .dropdown-content li {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 1em;
  }
}
