@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik.otf") format("opentype");
}

@font-face {
  font-family: "AeonikB";
  src: url("../fonts/AeonikB.otf") format("opentype");
}

body {
  font-family: "Aeonik", sans-serif;
  background-color: #000000;
  color: #ffffff;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
}

.container {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  z-index: 1;
}

h1 {
  font-family: "AeonikB", sans-serif;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(255, 255, 255, 0.3);
  margin-bottom: 40px;
  animation: pulseGlow 3s ease-in-out infinite;
}

.particle {
  position: absolute;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeInOut 4s ease-in-out infinite;
  filter: blur(0px);
  transition: filter 0.3s ease;
}

.particle:hover {
  filter: blur(2px);
}

@keyframes fadeInOut {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-20px);
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.4),
                 0 0 30px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                 0 0 25px rgba(255, 255, 255, 0.5),
                 0 0 35px rgba(255, 255, 255, 0.4);
  }
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.4),
                 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

/* Section Styles */
.section {
  margin: 20px 0;
  background-color: #121212;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px;
  overflow: hidden;
  max-height: 3.2em;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-height, transform, opacity;
  transform-origin: top;
  opacity: 1;
}

.section:hover {
  transform: translateX(5px);
  background-color: #181818;
}

/* Nested sections styling */
.section .section {
  background-color: #1a1a1a;
  margin: 10px 0;
  padding: 8px;
}

.section[open] {
  max-height: 2000px;
  opacity: 1;
}

.section:not([open]) {
  max-height: 3.2em;
  opacity: 0.95;
}

.content {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease,
              transform 0.3s ease;
  padding-top: 10px;
  display: inline-block;
  width: 100%;
  text-align: left;
}

.section[open] > .content {
  animation: slideIn 0.5s ease-out forwards;
}

.section:not([open]) > .content {
  animation: slideOut 0.5s ease-in forwards;
}

.content ul li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  flex-direction: row;
  opacity: 0;
}

.section[open] .content ul li {
  animation: slideIn 0.5s ease-out forwards;
}

.section:not([open]) .content ul li {
  animation: slideOut 0.5s ease-in forwards;
}

/* Staggered animations for list items */
.section[open] .content ul li:nth-child(1) { animation-delay: 0.1s; }
.section[open] .content ul li:nth-child(2) { animation-delay: 0.2s; }
.section[open] .content ul li:nth-child(3) { animation-delay: 0.3s; }
.section[open] .content ul li:nth-child(4) { animation-delay: 0.4s; }

/* Reverse staggered animations for closing */
.section:not([open]) .content ul li:nth-child(4) { animation-delay: 0.1s; }
.section:not([open]) .content ul li:nth-child(3) { animation-delay: 0.2s; }
.section:not([open]) .content ul li:nth-child(2) { animation-delay: 0.3s; }
.section:not([open]) .content ul li:nth-child(1) { animation-delay: 0.4s; }

summary {
  font-weight: bold;
  cursor: pointer;
  outline: none;
  padding: 5px;
  margin: -5px;
  transition: color 0.2s ease;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary:hover {
  color: #b7b7b7;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] > summary::after {
  transform: rotate(90deg);
}

.icon {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

summary:hover .icon {
  transform: scale(1.1);
}

/* Content Elements */
.content p {
  margin: 10px 0;
  line-height: 1.6;
}

.content h3 {
  color: #ffffff;
  margin: 20px 0 10px;
  font-family: "AeonikB", sans-serif;
}

.content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.skill-item > i {
  margin-top: 3px;
}

.sub-skills {
  margin-left: 24px !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
  width: 100%;
}

.sub-skill {
  background-color: #242424;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9em;
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;
  transition: all 0.3s ease;
}

.sub-skill:hover {
  transform: translateY(-2px);
  background-color: #2d2d2d;
  box-shadow: 0 2px 8px rgba(88, 166, 255, 0.2);
}

.sub-skill .icon {
  color: #58a6ff;
}

.content a {
  color: #58a6ff;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.content a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #1f6feb;
  transition: width 0.3s ease;
}

.content a:hover::after {
  width: 100%;
}

/* Project Showcase Styles */
.project-showcase {
  background-color: rgba(40, 40, 40, 0.5);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-showcase:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.1);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px 0;
}

.project-description {
  line-height: 1.6;
}

.project-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-features li {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-features i {
  color: #58a6ff;
}

.project-tech h3 {
  color: #b7b7b7;
  font-size: 1.1em;
  margin: 15px 0 10px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  background-color: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9em;
}

.project-links {
  margin-top: 20px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2ea043;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.github-link:hover {
  background-color: #3fb950;
  text-decoration: none;
  color: white;
}

/* Style dla sekcji certyfikatów */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.certificate-card {
  background-color: rgba(18, 18, 18, 0.95);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.certificate-title {
  font-size: 18px;
  font-weight: bold;
  color: #61dafb;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.certificate-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.certificate-content p {
  margin: 0;
  color: #e6e6e6;
}

.certificate-link {
  display: inline-block;
  background-color: #2d2d2d;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  font-weight: bold;
}

.certificate-link:hover {
  background-color: #3a3a3a;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects styling */
.projects-container {
  max-height: none !important;
  overflow: visible !important;
}

.projects-container .section[open] {
  max-height: 3000px;
}

/* New Effects */

/* Gradient button effect */
.gradient-btn {
  background: linear-gradient(45deg, #58a6ff, #ff58a6);
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gradient-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Text glitch effect */
.glitch-text {
  position: relative;
  animation: glitch 3s infinite;
}

.glitch-text:before, .glitch-text:after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text:before {
  left: 2px;
  text-shadow: -1px 0 red;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text:after {
  left: -2px;
  text-shadow: 2px 0 blue;
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch {
  0% { transform: none; opacity: 1; }
  7% { transform: skew(-0.5deg, -0.9deg); opacity: 0.75; }
  10% { transform: none; opacity: 1; }
  27% { transform: none; opacity: 1; }
  30% { transform: skew(0.8deg, -0.1deg); opacity: 0.75; }
  35% { transform: none; opacity: 1; }
  50% { transform: none; opacity: 1; }
  52% { transform: none; opacity: 1; }
  55% { transform: skew(-1deg, 0.2deg); opacity: 0.75; }
  72% { transform: none; opacity: 1; }
  75% { transform: skew(0.4deg, 1deg); opacity: 0.75; }
  80% { transform: none; opacity: 1; }
  100% { transform: none; opacity: 1; }
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(70% 0 12% 0); }
  20% { clip-path: inset(29% 0 55% 0); }
  40% { clip-path: inset(36% 0 17% 0); }
  60% { clip-path: inset(15% 0 54% 0); }
  80% { clip-path: inset(66% 0 13% 0); }
  100% { clip-path: inset(42% 0 28% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(63% 0 36% 0); }
  20% { clip-path: inset(25% 0 58% 0); }
  40% { clip-path: inset(41% 0 43% 0); }
  60% { clip-path: inset(18% 0 66% 0); }
  80% { clip-path: inset(38% 0 59% 0); }
  100% { clip-path: inset(47% 0 46% 0); }
}

/* Floating animation for cards */
.float-card {
  animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Neon glow effect */
.neon-border {
  border: 2px solid transparent;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.neon-border:hover {
  box-shadow: 0 0 10px #58a6ff, 0 0 20px #58a6ff, 0 0 30px #58a6ff;
  border-color: #58a6ff;
}

/* Typing animation */
.typing-text {
  overflow: hidden;
  border-right: 0.15em solid #58a6ff;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #58a6ff }
}

/* Parallax scroll effect */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 3D card tilt effect */
.tilt-card {
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Animated underline effect */
.animated-underline {
  position: relative;
  text-decoration: none;
}

.animated-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #58a6ff, #ff58a6);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease;
}

.animated-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Animated background gradient */
.gradient-bg {
  background: linear-gradient(-45deg, #121212, #1a1a1a, #242424, #2d2d2d);
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fade-in animation for content */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shining effect */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -75%; opacity: 0; }
  20% { left: -75%; opacity: 0.5; }
  100% { left: 125%; opacity: 0; }
}

/* Crazy new effects CSS */

/* RGB Split Effect */
.rgb-split {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.rgb-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.red-layer {
  color: rgba(255, 0, 0, 0.8);
  mix-blend-mode: screen;
  z-index: 1;
}

.green-layer {
  color: rgba(0, 255, 0, 0.8);
  mix-blend-mode: screen;
  z-index: 2;
}

.blue-layer {
  color: rgba(0, 0, 255, 0.8);
  mix-blend-mode: screen;
  z-index: 3;
}

.base-layer {
  color: white;
  z-index: 0;
}

/* Magnetic Button Effect */
.magnetic {
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.magnetic-inner {
  display: inline-block;
  transition: transform 0.1s ease;
  will-change: transform;
}

/* Text Scramble Effect */
.scramble-text {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.scramble-char {
  display: inline-block;
  color: rgba(88, 166, 255, 0.9);
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
  transform: scale(1.05);
}

/* Gravity Effect */
.gravity {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.gravity-item {
  user-select: none;
  position: absolute;
  transition: none;
  transform-origin: center;
  will-change: transform, left, top;
}

/* Noise Overlay Effect */
.noise-overlay {
  pointer-events: none;
}

/* Cyberpunk Glow Button */
.cyberpunk-btn {
  position: relative;
  color: #fff;
  background: #111;
  font-family: "AeonikB", sans-serif;
  padding: 15px 30px;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cyberpunk-btn:before, .cyberpunk-btn:after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  background: linear-gradient(45deg, 
    #ff0000, #ff7300, #fffb00, #48ff00, 
    #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 600%;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: -1;
  animation: glowing 20s linear infinite;
}

.cyberpunk-btn:after {
  filter: blur(20px);
  opacity: 0.6;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

.cyberpunk-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.cyberpunk-btn:active {
  transform: translateY(-2px);
}

/* Liquid Button */
.liquid-btn {
  position: relative;
  padding: 15px 30px;
  border: none;
  background: #111;
  color: #fff;
  font-family: "AeonikB", sans-serif;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.liquid-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.liquid-btn span {
  position: relative;
  z-index: 2;
}

.liquid-btn:hover:before {
  transform: translateX(100%) skewX(-15deg);
}

/* Glitch Background */
.glitch-bg {
  position: relative;
}

.glitch-bg:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* Circuit Board Pattern */
.circuit-pattern {
  position: relative;
}

.circuit-pattern:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(88, 166, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(88, 166, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

/* Holographic Card */
.holographic {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(88,166,255,0.1) 50%, rgba(255,88,166,0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.holographic:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.05) 25%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0.05) 75%, 
    rgba(255,255,255,0) 100%);
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
  animation: holographic-shine 3s ease-in-out infinite;
}

@keyframes holographic-shine {
  0% { 
    background-position: 0% 0%;
    opacity: 0;
  }
  25% { 
    opacity: 1; 
  }
  50% { 
    background-position: 100% 100%;
    opacity: 0;
  }
  100% { 
    background-position: 0% 0%;
    opacity: 0;
  }
}

/* Remove all boom effect styles */

/* Language Switch Button */
.language-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 25, 25, 0.9);
  color: #fff;
  border: 2px solid rgba(88, 166, 255, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 5px rgba(88, 166, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lang-btn:hover {
  transform: scale(1.1);
  background: rgba(35, 35, 35, 0.95);
  box-shadow: 0 6px 18px rgba(88, 166, 255, 0.5);
  border-color: rgba(88, 166, 255, 1);
}

.lang-btn:active {
  transform: scale(0.95);
}

.lang-icon {
  margin-right: 5px;
  color: rgba(88, 166, 255, 1);
}

/* Animation for language switch */
@keyframes langFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-lang].active {
  display: inline-block !important;
  animation: langFadeIn 0.4s ease forwards;
} 