:root{
    --black: #0B0808;
    --red: #ff073a;
    --darkred: #aa0324;
}

.swal-dark-popup {
    background: #000 !important;
    border: 2px solid var(--red) !important;
    color: #fff !important;
    font-family: "JetBrains Mono", monospace;
}

.swal-dark-title {
    color: #fff !important;
}

.swal-dark-text {
    color: #fff !important;
}

.swal-dark-button {
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 25px !important;
    font-family: "JetBrains Mono", monospace;
    cursor: pointer;
    transition: 0.2s;
}

.swal-dark-button:hover {
    background: var(--darkred) !important;
}

body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

body * {
  cursor: none !important;
}

html{
  scroll-behavior: smooth;
}

nav{
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.navbar{
    background-color: var(--black);
    border: 1px solid var(--red);
    border-radius: 9999px;
    padding: 12px 32px;
    display: flex;
    gap: 32px;
}

.navbar a {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.navbar a:hover{
    color: var(--darkred);
}


.hero{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.terminal-line {
  color: var(--red);
  margin-bottom: 20px;
  font-size: 14px;
}




.hero h1 {
  font-size: 72px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  color: #fff;
  text-transform: uppercase;
  animation: glitch 2s infinite;
}

.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  color: var(--red); 
  clip-path: inset(0 0 0 0);
  animation: glitchColor 2s infinite;
}

.hero h1::after {
  color: #00ffff; 
  mix-blend-mode: lighten;
  animation-delay: 1s;
}

@keyframes glitch {
  0%, 100% { transform: none; }
  20% { transform: skew(-2deg); }
  40% { transform: skew(2deg); }
  60% { transform: translateX(2px); }
  80% { transform: translateX(-2px); }
}

@keyframes glitchColor {
  0%, 100% { clip-path: inset(0 0 0 0); }
  10% { clip-path: inset(20% 0 40% 0); transform: translate(-3px, -3px); }
  20% { clip-path: inset(40% 0 20% 0); transform: translate(3px, 3px); }
  30% { clip-path: inset(10% 0 50% 0); transform: translate(-2px, 2px); }
  40% { clip-path: inset(30% 0 30% 0); transform: translate(2px, -2px); }
  50% { clip-path: inset(0 0 0 0); transform: none; }
}


.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


.subtitle {
  font-size: 1.5rem;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}
.prompt {
  color: var(--red);
  margin-right: 6px;
}
#typewriter {
  color: #ccc;
}
.cursor {
  color: var(--red);
  animation: blinkCursor 0.7s step-end infinite;
}
@keyframes blinkCursor {
  50% {
    opacity: 0;
  }
}



.terminal {
  background: var(--black);
  border: 1px solid var(--red);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 0 20px rgba(255, 7, 58, 0.3);
}

.terminal-header {
  background: var(--red);
  display: flex;
  align-items: center;
  padding: 6px 12px;
  position: relative;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.filename {
  color: #000;
  font-weight: bold;
  font-size: 13px;
  padding-left: 5px;
}

.terminal-body {
  text-align: left;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.5;
}

.comment { color: #549955; }
.code-line { color: #ccc; }
.log { color: #ffdf00; }
.zavorka { color: #F19F1B; }
.zavorka2 { color: #DA70D6; }
.zavorka-nadpisu { color: var(--red); font-size: 1.4em; }
.let { color: #317CD6; }
.promenna { color: #8CDCFE; }
.hodnota { color: #eea689; }
.hodnota-boolean { color: #569CD6; }

.nadpis-sekce{
    display: flex;
    align-items: center;

}



.buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  text-decoration: none;
  background: var(--red);
  color: #000;
  padding: 12px 32px;
  border-radius: 4px;
  border: 1px solid var(--red);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #000;
  color: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.btn-outline {
  background: transparent;
  color: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: #000;
}





.skills-section {
  color: #fff;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  position: relative;
}

.skills-section .terminal {
  max-width: 700px;
  width: 90%;
  box-shadow: 0 0 20px rgba(255, 7, 58, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  width: 90%;
  max-width: 700px;
}




.test-project{
  padding: 20px 0 100px 0;
  justify-content: center !important;

}
.project-section{
  color: #fff;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  position: relative;
  padding: 0 10vw;
}

.projects {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
  justify-content: space-between;
}

.project-card {
  flex: 0 1 calc(33.333%);
  background: var(--black);
  border: 1px solid var(--red);
  border-radius: 8px;
  overflow: hidden;
  max-width: 30%;
  width: 90%;
  box-shadow: 0 0 20px rgba(255, 7, 58, 0.3);
  transition: transform 0.3s;
  justify-content: space-between;
}


.project-filters{
  display: flex;
  gap: 15px;
  margin: 20px;
}

.filter-btn{
  padding: 10px 20px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: 'JetBrains Mono', monospace;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bolder;
}
.filter-btn:hover, .filter-btn.active{
  background: var(--red);
  color: #000;
}



@media (max-width: 1084px) {
  .projects{
    gap: 0;
  }
}

@media (max-width: 954px) {
  .project-card {
    flex: none;
    max-width: 100%;
    overflow: hidden; 
  }
  .projects{
    justify-content: center;
    gap: 40px;
  }
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.project-info {
  padding: 16px 20px;
}

.project-title {
  font-size: 1.5em;
  color: var(--red);
  margin: 0 0 10px;
}

.project-desc {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--red);
  color: #000;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
}



.contact-section{
  color: #fff;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  position: relative;
}
.contact-container {
  display: flex;
  justify-content: center;
  align-items: stretch; 
  gap: 40px;
  flex-wrap: wrap;
  width: 80%;
  max-width: 1000px;
}

.contact-container-left,
.contact-container-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  min-width: 300px;
  width: 100%;
}

.contact-form {
  background: var(--black);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 20px rgba(255, 7, 58, 0.3);
}

.contact-form label {
  color: var(--red);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: 'JetBrains Mono', monospace;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: 4px;
  outline: none;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 8px var(--red);
}

.contact-form button {
  background: var(--red);
  color: #000;
  font-weight: bold;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: #000;
  color: var(--red);
  box-shadow: 0 0 10px var(--red);
}


footer{
  display: flex;
  justify-content: center;
  color: var(--red);
  border-top: 1px solid var(--red);
  background-color: var(--black);
  height: 100%;
  width: 100%;
}

.form-response {
  margin-top: 12px;
  padding: 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,7,58,0.1);
}

.footer-div{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--black);
  padding: 15px;
  z-index: 20;
  height: 100%;
  width: 100vw;
}
.footer-div p{
  font-size: 1.1em;
}
.footer-links a{
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
  font-size: 1em;
}
.footer-links a:hover{
  color: #9a9a9a;
}





@media (max-width: 768px) {
  .hero h1 { font-size: 48px; }
  .hero h2 { font-size: 18px; }
  .terminal { max-width: 100%; }
}
@media (max-width: 467px) {
  .subtitle{
    font-size: 1rem;
  }
}
@media (max-width: 737px) {
  .navbar{
    scale: 0.8;
  }
}
@media (max-width: 450px) {
  .navbar{
    scale: 0.7;
  }
}
@media (max-width: 400px) {
  .navbar{
    scale: 0.6;
  }
}
@media (max-width: 330px) {
  .navbar{
    scale: 0.5;
  }
}

#matrixRain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
  opacity: 0.6;
}
section{
    z-index: 2;
    position: relative;
}


#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.1s, height 0.1s, background 0.1s;
  background-size: contain; 
  background-repeat: no-repeat; 
  background-color: transparent;
  border: none !important;   
}

#cursor[data-state="default"] {
  background-image: url("../imgs/kurzory/cursor-main.png");
}

#cursor[data-state="text"] {
  background-image: url("../imgs/kurzory/cursor-select-text.png");
}

#cursor[data-state="pointer"] {
  background-image: url("../imgs/kurzory/cursor-main.png");
}

#cursor[data-state="drag"] {
  background-image: url("../imgs/kurzory/cursor-main.png");
}

@media(pointer: coarse) {
  #cursor{
    display: none;
  }
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: transparent; 
}

::-webkit-scrollbar-thumb {
  background: var(--red); 
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--darkred); 
}






.project-section2{
  gap: 0 !important;
  min-height: 100vh;
}