/* === Zmienne (Catppuccin Mocha) === */
:root {
    --bg: #1e1e2e;          /* Base */
    --text: #cdd6f4;        /* Text */
    --accent: #cba6f7;      /* Mauve */
    --border: #313244;      /* Surface0 */
    --hover-bg: #181825;    /* Mantle */
    --code-bg: #585b70;     /* tło inline code */
    --code-text: #a6e3a1;   /* zielony tekst inline code */
    --transition-speed: 0.4s;
}

/* === Font === */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../assets/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

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

/* === Body === */
body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto; /* wyśrodkowanie */
    padding: 2rem;
    animation: fadeIn 0.2s ease-in; /* wymaga @keyframes fadeIn w keyframes.css */
}

/* === Inline code === */
code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

  header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1.5rem;
    padding:1.25rem 0;
    border-bottom:1px solid var(--border);
    margin-bottom:2rem;
  }
 
  header .brand{
    color:var(--accent);
    font-weight:bold;
    text-decoration:none;
    font-size:1rem;
  }
  header .brand::before{
    content:"~/";
    color:var(--text);
    opacity:.5;
  }
 
  header ul{
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    gap:1.5rem;
  }
 
  header a{
    color:var(--text);
    text-decoration:none;
    font-size:.9rem;
    opacity:.7;
    transition:opacity .2s, color .2s;
    position:relative;
  }
  header a::before{
    content:"// ";
    color:var(--accent);
    opacity:0;
    transition:opacity .2s;
  }
  header a:hover{
    opacity:1;
  }
  header a:hover::before{
    opacity:1;
  }
 
  header a.active{
    color:var(--accent);
    opacity:1;
  }
  header a.active::before{
    opacity:1;
    content:"// ";
  }
 
  @media (max-width:480px){
    header{
      flex-direction:column;
      align-items:flex-start;
      gap:1rem;
    }
    header ul{ gap:1rem; flex-wrap:wrap; }
  }


/* === Ikony (wspólne dla całej strony, w tym footer) === */
.small-icon {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
    margin-right: 5px;
    transition: transform 0.2s ease;
}

.smaller-image {
    max-width: 100%;
    width: 40px;
    height: 40px;
}

.heading-icon {
    height: 1em;
    width: auto;
    vertical-align: middle;
}

/* === Kontakt (grid w footer) === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 3fr);
    gap: 1rem;
    justify-items: center;
    align-items: center;
    margin-top: 1rem;
}

#contact a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--accent);
}

#contact img {
    width: 26px;
    height: 26px;
}

/* === Galeria === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* === Sekcja "arch" (jeśli dalej używana) === */
.arch-section img {
    width: 220px;
}