/* Merged CSS: Cleaned and unified */
/* Docs: ../documentation.md#css-root-variables */
:root {
  --primary: #214a61;
  --secondary: #42445e;
  --accent: #a3a7a8;
  --text: #23343f;
  --background: #c8d1d6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Docs: ../documentation.md#css-global-reset */

/* Docs: ../documentation.md#css-body */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--secondary);
  line-height: 1.6;
  padding: 0;
  /*background-image: url("../media/BongoCat.png"); */
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 30%;
  height: 100vh;
}

/* Docs: ../documentation.md#css-headings */
h1 {
  color: #5d7d96;
  outline-color: black;
  outline-style: ridge;
  text-align: center;
  text-shadow: 2em;
}

h2 {
  margin-bottom: 0;
  color: var(--primary);
  font-size: 2rem;
}

h3 {
  margin: 0.75rem;
  font-size: 1.25rem;
}

h4 {
  text-decoration: underline;
}

/* Docs: ../documentation.md#css-header-siteheader */
header {
  color: #fff;
}

/* Docs: ../documentation.md#css-header-siteheader */
.site-header {
  background: linear-gradient(135deg, #000000 0%, #1d2142 45%, #1d2145 100%);
  padding: 1rem 2rem 2rem;
}

.site-banner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 1.25rem auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 1;
}

.site-banner img {
  width: 100%; 
  height: 100%; 
  object-fit: contain;
 
  /* width: 100%;
  height: 420px;  
  object-fit: cover;
  object-position: center center;
  display: block; */
}

/* Docs: ../documentation.md#css-banner-overlay */
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(8,22,31,0.7), rgba(8,22,31,0.25));
  color: #fff;
}

.role-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  max-width: 280px;
  margin-top: 1rem;
  margin-left: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Docs: ../documentation.md#css-banner-title */
.banner-title {
  text-align: right;
  align-self: center;
  margin-right: 0.5rem;
}

.banner-title h1 {
  margin: 0;
  font-size: 2.4rem;
  outline: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.banner-title p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.role-card h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Docs: ../documentation.md#css-role-card */
.role-card p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.role-placeholder {
  opacity: 0.8;
  font-style: italic;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 1100;
}

/* Docs: ../documentation.md#css-navbar */
.logo {
  font-size: 1.75rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Docs: ../documentation.md#css-menu-toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

/* Docs: ../documentation.md#css-section */
.section {
  padding: 2rem 2rem 1rem;
  max-width: 1100px;
  margin: auto;
}

.collapsible-section {
  background: rgba(219, 219, 219, 0.9);
  border: 1px solid rgba(60,106,136,0.16);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Docs: ../documentation.md#css-collapsible-section */
.collapsible-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.collapsible-section summary::-webkit-details-marker {
  display: none;
}

.collapsible-section summary h2 {
  margin: 0;
}

.summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}

.collapsible-section[open] .summary-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: var(--text);
}

.details-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease, padding 0.35s ease;
  padding-top: 0;
}

.collapsible-section[open] .details-content {
  max-height: 2200px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 1rem;
}

.details-content p,
.details-content ul {
  margin-bottom: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.project-card {
  background-color: var(--background);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.2s ease;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-grid > button {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.project-grid > button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.project-card.visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.pixel-art {
  width: min(256px, 100%);
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.project-card p {
  padding: 0 0.75rem 1rem;
  font-size: 0.95rem;
  flex: 1 1 auto;
}

.project-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Docs: ../documentation.md#css-button */
.button {
  display: inline-block;
  padding: 3vmin;
  font-size: 0.5em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #af4040;
  background-color: #151f5f;
  border: none;
  border-radius: 15vmin;
  box-shadow: 0 2px #181d2e;
  margin-top: 1rem;
}

/* Docs: ../documentation.md#css-button */
.button:hover {
  background-color: #38459b;
}

.button:active {
  background-color: #6874C4;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

/* Contact links styling */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link .icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  display: inline-block;
  justify-content: center;
  color: var(--primary);
  flex: 0 0 28px;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-text {
  font-size: 1rem;
}

/* Normalize SVG sizing and alignment across different icon paths */
.contact-link .icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-text {
  line-height: 1.2;
}


/* Docs: ../documentation.md#css-container */
#container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  margin: 1rem;
}

/* Docs: ../documentation.md#css-dice */
.dice {
  font-size: 20px;
  margin: 1vmin 0;
  transition: transform 0.2s ease-in-out;
  position: absolute;
}

/* Docs: ../documentation.md#css-rollbutton */
#rollButton {
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Docs: ../documentation.md#css-footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #000000 10%, #1d2142 45%, #1d2145 100%);
  color: #fff;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.site-footer .footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background-color: var(--primary);
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 8px;
    padding: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }
}

/* Docs: ../documentation.md#css-responsive-navigation */
/* Docs: ../documentation.md#css-grid-container */
/* Grid layout from old CSS */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "header header header header"
    "main main . right"
    "main main . right"
    "footer footer . .";
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 1vmin 0;
  font-size: 1.5em;
}

.header { grid-area: header; }
.main { grid-area: main; text-align: left; }
.right { grid-area: right; }
.menu { grid-area: footer; }
