
:root {
  --primary: #2c3e50;
  --secondary: #8e44ad;
  --accent: #e67e22;
  --text: #ecf0f1;
  --highlight: #f1c40f;
  --card-bg: rgba(236, 240, 241, 0.15);
}

@font-face {
  font-family: 'Montserrat';
  src: url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
}

@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');
}

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

body {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  position: relative;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: radial-gradient(circle at 70% 30%, rgba(44, 62, 80, 0.8), rgba(142, 68, 173, 0.9));
}

.header-content {
  max-width: 800px;
  z-index: 2;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #f1c40f, #e67e22);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 2rem 0 1.5rem;
  color: var(--highlight);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 1.5rem 0 1rem;
  color: var(--accent);
}

p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  margin-bottom: 1.5rem;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(44, 62, 80, 0.95);
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
}

.navbar a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: var(--accent);
}

.navbar a:hover::after {
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  color: var(--highlight);
  margin-bottom: 1rem;
}

.article-content {
  background: rgba(44, 62, 80, 0.7);
  border-radius: 15px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

pre {
  background: rgba(25, 42, 62, 0.8);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  border-left: 4px solid var(--accent);
}

code {
  font-family: 'Courier New', monospace;
  color: #f8f8f2;
  font-size: 0.9rem;
}

.notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(44, 62, 80, 0.9);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-left: 4px solid var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  background: rgba(44, 62, 80, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .container {
    padding: 5rem 1.5rem 3rem;
  }
  
  .article-content {
    padding: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

