* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #fff;

    background-image: url("render.png");
    background-repeat: no-repeat;
    background-attachment: fixed; 
    background-position: center 200px; 
    background-size: contain; 
}

header {
    position: relative;
    background-color: #000;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo-container {
    padding: 60px 0;
}

header .logo-container img {
    max-width: 400px;
}

header .subtitle {
    color: #fff;
    font-size: 18px;
    margin-top: 15px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 60px #ff0000;
}

main {
    padding: 40px 20px;
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none; /* ukryty domyślnie */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #fff;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  text-shadow: 0 0 10px red, 0 0 20px red;
}

.project-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: scale(1.10);
  box-shadow: 10 10 20px rgb(255, 255, 255);
}

.contact a {
  transition: transform 0.5s ease;
  display: inline-block;
}

.contact a:hover {
  transform: scale(1.2);
}
.outlined-text {
  color: #ffffff; 
  text-shadow:
     -1px -1px 0 #000000,
      1px -1px 0 #000000,
     -1px  1px 0 #000000,
      1px  1px 0 #000000;
}

.projects h2 {
    font-size: 36px;   
    margin-bottom: 50px; 
    margin-top: -20px; 
}

.contact h2 {
    font-size: 36px;   
    margin-bottom: 50px; 
    margin-top: -20px; 
}

.about h1 {
    font-size: 36px;   
    margin-bottom: 10px; 
    margin-top: -20px;   
}

.about {
    text-align: center;
    padding: 60px 20px;
    margin-top: -40px;
    background: rgba(0, 0, 0, 0.6); 
    border-radius: 20px;          
    max-width: 800px;             
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: inline-block;
    color: #FFFFFF;
    padding: 20px 40px;
    border-radius: 12px;
}

.about h1 {
    margin-top: 1;
    text-shadow:
        0 0 5px #DD00FF,
        0 0 10px #DD00FF,
        0 0 20px #DD00FF,
        0 0 40px #DD00FF;
}

.neon-orange {
    color: #FFA500;
    font-size: px;
    font-weight: bold;
    text-align: center;
    text-shadow:
        0 0 5px #FFA500,
        0 0 10px #FFA500,
        0 0 20px #FFA500,
        0 0 40px #FFA500,
        0 0 80px #FFA500;
}

.neon-purple {
    color: #990195;
    font-size: px;
    font-weight: bold;
    text-align: center;
    text-shadow:
        0 0 5px #990195,
        0 0 10px #990195,
        0 0 20px #990195,
        0 0 40px #990195,
        0 0 80px #990195;
}

.neon-red {
    color: #FF0000;
    font-size: px;
    font-weight: bold;
    text-align: center;
    text-shadow:
        0 0 5px #FF0000,
        0 0 10px #FF0000,
        0 0 20px #FF0000,
        0 0 40px #FF0000,
        0 0 80px #FF0000;
}

.neon-blue {
    color: #003BFF;
    font-size: px;
    font-weight: bold;
    text-align: center;
    text-shadow:
        0 0 5px #003BFF,
        0 0 10px #003BFF,
        0 0 20px #003BFF,
        0 0 40px #003BFF,
        0 0 80px #003BFF;
}

.neon-white {
    color: #FFFFFF;
    font-size: px;
    font-weight: bold;
    text-align: center;
    text-shadow:
        0 0 5px #FFFFFF,
        0 0 10px #FFFFFF,
        0 0 20px #FFFFFF,
        0 0 40px #FFFFFF,
        0 0 80px #FFFFFF;
}

.neon-lime {
    color: #00ff00;
    font-size: px;
    font-weight: bold;
    text-align: center;
    text-shadow:
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 40px #00ff00,
        0 0 80px #00ff00;
}

.project-item {
    background-color: #000;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow:
        0 0 10px #fff,
        0 0 20px #fff;
    width: 220px;
    flex: 0 0 auto;
}

::-webkit-scrollbar {
  width: 12px;               
}

::-webkit-scrollbar-track {
  background: #000000;      
  border-radius: 10px;       
}

::-webkit-scrollbar-thumb {
  background: #ff0000;       
  border-radius: 10px;       
}

::-webkit-scrollbar-thumb:hover {
  background: #cc0000;      
}

* {
  scrollbar-width: thin;              
  scrollbar-color: #ff0000 #000000;   
}

.project-item img {
    max-width: 100%;
    height: auto;
    border: 2px solid #fff;
    border-radius: 6px;
}

.project-item.double {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-item.double .project-images {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.project-item.double .project-images img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

section {
    margin-bottom: 50px;
}

h1, h2 {
    margin-bottom: 20px;
    text-align: center;
}

.project-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
}

.project-item {
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 250px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff;
    transition: transform 0.3s;
}

.project-item h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
}

.project-item img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    border: 2px solid #fff;
    border-radius: 8px;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.floating-squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.square {
    position: absolute;
    top: 0;
    opacity: 0.8;
    animation-name: floatSquares;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 5s;
}

@keyframes floatSquares {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(var(--headerHeight)) rotate(360deg); opacity: 0; }
}

/* Kontener dla neonowego glow */
.gradient-wrapper {
  display: inline-block;
  position: relative;
  z-index: 1; /* tekst jest nad podświetleniem */
}

/* Gradientowy tekst z animacją */
.gradient-neon {
  font-weight: bold;
  background: linear-gradient(90deg, #003BFF, #ff0000, #ffa500);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2; /* gradient jest nad pseudo-elementem */
  animation: gradient-move 3s linear infinite;
}

/* Neonowe podświetlenie pod tekstem */
.gradient-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-50%);
  background: #ffa500;
  filter: blur(15px);
  opacity: 0.5;
  z-index: 1; /* pod gradientowym tekstem */
  pointer-events: none;
  animation: neon-pulse 2s ease-in-out infinite alternate;
}

/* Animacja przesuwającego się gradientu */
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animacja pulsującego neonowego podświetlenia */
@keyframes neon-pulse {
  0% { opacity: 0.3; filter: blur(10px); }
  50% { opacity: 0.6; filter: blur(20px); }
  100% { opacity: 0.3; filter: blur(10px); }
}

