/* ================================
   1. Reset & Global Base Styles
   ================================ */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #1a1c1e;
  color: #cccccc;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* =========================
   2. Typography & Elements
   ========================= */

/* Headings */
h1 {
  color: #cccccc;
  margin-top: 0;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
}

/* Links (base) */
a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-weight: normal;
}

a:hover {
  color: #ffffff;
  font-weight: bold;
}

/* ======================
   3. Header & Navigation
   ====================== */

header {
  background-color: #232526;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Navigation-specific links */
nav a {
  margin-left: 1rem;
  color: #cccccc;
  text-decoration: none;
}

nav a:hover {
  color: #ffffff;
  font-weight: bold;
}

/* =====================
   4. Main Container
   ===================== */

.container {
  max-width: 800px;
  margin: 2rem 0 2rem 1rem;
  padding: 0 1rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Fade-in animation when page is loaded */
body.loaded .container {
  opacity: 1;
  transform: translateX(0);
}

/* Page Titles */
.container h1 {
  border-bottom: 5px solid #cccccc;
  padding-bottom: 0.5rem;
}

/* ==========================
   5. Home Page Custom Styles
   ========================== */

main.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-main h1 {
  font-size: 4em;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  border-bottom: none;
}

.home-main p {
  font-size: 1.5em;
  font-weight: 300;
  margin: 0.1em 0 0;
  padding: 0;
  line-height: 1;
}

/* ================
   6. Footer Styles
   ================ */

footer {
  margin: 0;
  padding: 0 1rem;
  background-color: #181a1b;
  color: #b0b3b8;
  text-align: center;
}

/* =============================
   7. Responsive Design (Mobile)
   ============================= */

@media (max-width: 768px) {
  .container {
    margin: 2rem auto;
    padding: 0 3rem;
  }

  .home-main h1 {
    font-size: 3rem;
  }

  .home-main p {
    font-size: 1rem;
  }
}
