/* === CSS RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === VARIABLES === */
:root {
  --bg1: #0a0a0a;
  --bg2: #1a1a1a;
  --red: #ff0044;
  --orange: #ff9500;
  --accent: #ffd700;
  --text: #f2f2f2;
  --shadow-color: rgba(255, 68, 0, 0.15);
  --text-shadow-color: rgba(255, 100, 0, 0.35);
}

/* === GENERAL STYLES === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === HEADER === */
header {
  position: relative;
  text-align: center;
  padding: 120px 20px 70px;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1593709812084-7db6a5599d82?auto=format&fit=crop&w=1600&q=80&fm=webp') center/cover no-repeat;
  filter: brightness(0.3);
  z-index: -1;
  /* Parallax effect can be heavy on mobile, consider disabling it via media query if needed */
  background-attachment: fixed;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px var(--text-shadow-color);
  animation: fadeInDown 1s ease-out forwards;
}

/* === ARTICLE & CONTENT === */
.main-article {
  max-width: 850px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(25px, 5vw, 45px);
  border-radius: 20px;
  box-shadow: 0 0 30px var(--shadow-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

h2,
h3 {
  color: var(--accent);
  margin-top: 2.5rem;
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  font-weight: 600;
}

p {
  line-height: 1.8;
  font-size: clamp(1rem, 3vw, 1.1rem);
  margin: 1rem 0;
}

img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 30px 0;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* === FOOTER === */
.site-footer {
  text-align: center;
  margin: 70px 0 40px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.site-footer p {
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === ANIMATIONS & UTILITIES === */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .main-article { padding: 25px 20px; }
  header::before { background-attachment: scroll; /* Disable parallax on mobile for performance */ }
}