* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: #0e0e0e;
  color: #f5f5f5;
}

/* Usuń marginesy i padding całej strony */
body, html {
    margin: 0;
    padding: 0;
}

/* Header całkowicie przezroczysty i bez wysokości */
.header {
    background: transparent; /* przezroczyste tło */
    position: absolute;       /* nakłada się na mat */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;              /* wyżej niż mat */
    display: flex;
    justify-content: center;  /* wyśrodkowanie ramki */
    padding: 1rem 0;
}

/* Ramka wokół menu */
.nav-box {
    background: rgba(0,0,0,0.6); /* półprzezroczysta ramka */
    padding: 1rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}


.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0 1.5rem; /* odstęp między linkami */
    
    background: linear-gradient(90deg, #00ffcc, #ff00ff, #00aaff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff; /* domyślny kolor tekstu */
}

.nav a:hover {
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}



@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    background: linear-gradient(90deg, #0b225f, #445483, #0b225f);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff; /* domyślny kolor tekstu */
}

.nav a:hover {
    -webkit-text-fill-color: transparent; /* gradient pojawia się tylko na hover */
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}



.main {
  padding: 4rem 2rem;
}

.about-preview {
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  text-decoration: underline;
}

/* mat Section */
.mat {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c0c0c, #1a1a1a, #111111);
    background-size: cover;
    padding: 2rem;
    position: relative;
}

/* Card / box w środku */
.mat-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px); /* efekt szkła */
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}



/* Duże Hi! */
.mat-hi {
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
}

.mat-name {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    margin-left: 10px; /* lekko w prawo */
}

.highlight-gradient {
    background: linear-gradient(90deg, #0b225f, #445483, #0b225f);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

.mat-subtitle {
    font-size: 1.3rem;
    color: #ccc;
    text-align: center;
}

.mat-subtitle-2 {
    font-size: 1rem;
    color: #ccc;
    text-align: center;
}


@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animacja fade-in */
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.animate-fade.delay1 { animation-delay: 0.3s; }
.animate-fade.delay2 { animation-delay: 0.6s; }
.animate-fade.delay3 { animation-delay: 0.9s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Footer */
.footer {
    position: fixed;       /* przyklejony do dołu */
    bottom: 0;             /* dół ekranu */
    left: 0;               /* od lewej */
    width: 100%;           /* pełna szerokość */
    background: #111;      /* kolor paska */
    color: #fff;           /* kolor tekstu */
    text-align: center;    /* wyśrodkowanie tekstu */
    padding: 0.8rem 0;     /* wysokość paska */
    font-size: 0.9rem;     /* rozmiar czcionki */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5); /* subtelny cień nad paskiem */
    z-index: 100;          /* nad resztą strony */
}

/* Jeśli content jest dłuższy niż ekran, dodaj padding na dole main, żeby footer nie zasłaniał treści */
.main {
    padding-bottom: 4rem; /* dopasowane do wysokości footer */
}
