:root {
  --primary: #2c3e50;
  --secondary: #34495e;
  --accent: #e67e22;
  --light: #f8f9fa;
  --background: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease-in-out;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  color: var(--primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
}

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

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: var(--light);
}

/* Hamburger menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--light);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 3px;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav ul li a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition);
}

nav ul li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

nav ul li a:hover::before,
nav ul li a:focus::before {
  width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px var(--shadow);
  }

  nav ul {
    flex-direction: column;
    max-height: 0;
    padding: 0;
    margin: 0;
    transition: max-height var(--transition);
  }

  nav ul.active {
    max-height: 500px; /* Adjust based on content height */
    padding: 1rem 0;
  }

  nav ul li {
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }
  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
/* MAIN CONTENT */
main {
  margin: 4rem 0;
}

/* Sections */
section {
  padding: 3rem 0;
  background: var(--light);
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform var(--transition);
}

section:hover,
section:focus-within {
  transform: translateY(-5px);
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

section p {
  max-width: 680px;
  margin: 1.5rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  color: var(--secondary);
}

/* Featured image */
.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 6px var(--shadow);
}

/* Meta information */
.meta-info {
  padding: 15px;
  background: var(--light);
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.9em;
}

/* Status message */
.loading,
.error-message {
  text-align: center;
  padding: 20px;
}

.error-message {
  color: #dc3545;
}

/* SOCIAL MEDIA */
.social-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  background: var(--light);
  border-radius: 50%;
  box-shadow: 0 2px 4px var(--shadow);
  transition: var(--transition);
}

.social-media a:hover,
.social-media a:focus {
  transform: translateY(-3px) scale(1.1);
  background: var(--accent);
  color: var(--light);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--light);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Interactive link */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition);
}

a:hover::after,
a:focus::after {
  width: 100%;
}

a:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  section {
    padding: 2rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .social-media a {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
  }

  nav ul {
    top: 60px;
    height: calc(100vh - 60px);
  }
}