:root {
  --color-bg: #030303;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-text: #ffffff;
  --color-muted: #e2e2e2;
  --color-accent: #00ff9d;
  --color-accent-strong: #00d67a;
  --color-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 255, 157, 0.35);
  --radius: 22px;
  --transition: 0.4s ease;
  --font-main: 'Inter', 'Outfit', sans-serif;
}

/* --- GENERAL --- */
body {
  margin: 0;
  font-family: var(--font-main);
  background: linear-gradient(160deg, #1a1a1a 0%, #060017 100%);
  color: var(--color-text);
  line-height: 1.7;
  scroll-behavior: smooth;
  user-select: none;
}

body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: #0a0a0a;
}
body::-webkit-scrollbar-thumb {
  background: var(--color-accent-strong);
  border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-accent);
}

/* --- HEADER --- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.55);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-glow);
  transition: all var(--transition);
}
header:hover {
  background: rgba(10, 10, 10, 0.75);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: transform var(--transition);
}
.logo-container:hover {
  transform: scale(1.07);
}
.logo-container img {
  width: 52px;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.2);
}
header h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

/* --- SOCIAL ICONS --- */
.header-socials ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-socials i {
  font-size: 2.8rem;
  color: var(--color-text);
  transition: all var(--transition);
  filter: drop-shadow(0 0 4px rgba(0,255,157,0.1));
}
.header-socials i:hover {
  color: var(--color-accent);
  transform: scale(1.25) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(0,255,157,0.6));
}

/* --- MAIN --- */
main {
  padding: 2.5rem 1rem;
  animation: fadeIn 0.6s ease-in forwards;
  opacity: 0;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

#titlesh2, .title2 {
  text-align: center;
  margin: 3rem 0 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.4);
}

/* --- ARTICLES GRID --- */
.articles-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
}

article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
article:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  background: var(--color-surface-hover);
}

.article-image-container {
  width: 100%;
  overflow: hidden;
}
.article-image {
  width: 100%;
  display: block;
  transition: transform var(--transition);
}
article:hover .article-image {
  transform: scale(1.1);
}

.article-content {
  padding: 1.6rem;
}
.article-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.article-content p {
  font-size: 1rem;
  color: var(--color-muted);
}

/* --- FOOTER --- */
.footer {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  padding: 3.5rem 1rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  box-shadow: inset 0 0 30px rgba(0, 255, 157, 0.05);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: auto;
}

.footer-info, .footer-legal, .footer-socials {
  flex: 1;
  min-width: 260px;
}

.footer-logo {
  width: 80px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(0,255,157,0.4));
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.footer ul {
  list-style: none;
  padding: 0;
}
.footer ul li {
  margin: 0.7rem 0;
  color: var(--color-muted);
  transition: color var(--transition);
}
.footer ul li:hover {
  color: var(--color-accent);
}

.footer-socials ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
  padding: 0;
}
.footer-socials i {
  font-size: 3rem;
  transition: all var(--transition);
}
.footer-socials i:hover {
  color: var(--color-accent);
  transform: scale(1.25);
  filter: drop-shadow(0 0 14px rgba(0,255,157,0.7));
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}
