/* === Modern Deep Blue + Amber Theme CSS === */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  line-height: 1.7;
}

/* Navigation */
nav {
  background-color: #1e293b; /* Deep Blue Gray */
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #f59e0b;
}

nav a {
  color: #f59e0b; /* Amber */
  text-decoration: none;
  margin: 0 16px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

nav a:hover {
  color: #1e293b;
  background-color: #f59e0b;
  transform: translateY(-2px);
}

/* Title */
h1 {
  font-weight: 700;
  font-size: 2.6rem;
  text-align: center;
  color: #f59e0b;
  margin: 50px 20px 25px;
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
  letter-spacing: -0.5px;
}

/* Subheadings */
h3, h4, h5 {
  color: #f59e0b; /* Amber */
  margin-top: 35px;
  font-weight: 600;
  border-left: 4px solid #f59e0b;
  padding-left: 15px;
}

/* Sections */
section {
  background-color: #1e293b;
  max-width: 900px;
  margin: 35px auto;
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
  border: 1px solid #334155;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

/* Paragraphs and lists */
p, ul {
  color: #cbd5e1;
  font-size: 1.05rem;
}

ul {
  padding-left: 30px;
}

li {
  margin-bottom: 8px;
}

/* Images */
img {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  border: 2px solid #334155;
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Code inline */
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background-color: #0f172a;
  color: #f59e0b;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9em;
  border: 1px solid #334155;
}

/* Links */
a {
  color: #f59e0b;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.1rem;
    margin: 30px 15px 20px;
  }

  section {
    margin: 20px 12px;
    padding: 25px 20px;
  }

  nav a {
    margin: 0 8px;
    font-size: 0.95rem;
    padding: 6px 10px;
  }
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #f59e0b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}