* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0f0f1a;
  color: #e0e0ff;
  font-family: "Courier New", monospace;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  background: #151528;
  border-bottom: 1px solid #2a2a40;
}

.logo {
  font-size: 20px;
  color: #00f7ff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00f7ff;
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 40px;
  color: #00f7ff;
}

.hero p {
  color: #888;
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 40px;
  gap: 20px;
}

/* CARD */
.card {
  background: #1b1b2f;
  padding: 40px;
  border-radius: 15px;
  border: 1px solid #2f2f4f;
  transition: 0.3s;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  border: 1px solid #00f7ff;
  box-shadow: 0 0 15px #00f7ff33;
}

.card h2 {
  margin-bottom: 10px;
}

.card p {
  color: #aaa;
  margin-bottom: 15px;
}

.card a {
  text-decoration: none;
  color: #00f7ff;
  font-size: 14px;
}


/*o mě*/
.about, .skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 40px;
  gap: 20px;
}

/* lehce větší text pro "O mně" */
.about .card p,
.skills .card p {
  font-size: 14px;
  color: #bbb;
  line-height: 1.5;
}




/*blog*/
.blog-container {
  display: flex;
  flex-direction: column; /* pod sebe */
  align-items: center;
  gap: 60px;
  padding: 20px;
}

.blog-card {
  background: #1b1b2f;
  width: 100%;
  max-width: 1000px;
  padding: 35px;
  border-radius: 15px;
  border: 1px solid #2f2f4f;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.08);
}

.blog-card h2 {
  color: #00f7ff;
  margin-bottom: 10px;
  font-size: 28px;
}

.date {
  color: #00ff62;
  font-size: 18px;
  margin-bottom: 25px;
}

.blog-item {
  background: #141427;
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid #2a2a40;
  transition: 0.3s;
}

.blog-item:hover {
  border-color: #00f7ff;
  transform: translateX(8px);
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.15);
}

.blog-item h3 {
  margin-bottom: 8px;
  color: white;
}

.blog-item p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  margin-top: 8px;
  margin-right: 6px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #00f7ff;
  color: #000;
  font-weight: bold;
}
/*Ruby stranka*/
.ruby-container {
  display: flex;
  gap: 60px;
  padding: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.ruby-column {
  background: #1b1b2f;
  padding: 25px;
  border-radius: 15px;
  width: 700px;
  border: 1px solid #2f2f4f;
}

.ruby-column h2 {
  color: #00f7ff;
  margin-bottom: 15px;
  text-align: center;
}

.ruby-column a {
  display: block;
  color: #aaa;
  text-decoration: none;
  text-align: center;
  margin-bottom: 8px;
  padding: 6px;
  border-radius: 8px;
  transition: 0.2s;
}

.ruby-column a:hover {
  background: #00f7ff;
  color: black;
}

.empty {
  color: #777;
  font-style: italic;
  padding: 10px;
}

.dev-box {
  margin-top: 15px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #00f7ff;
  background: rgba(0, 247, 255, 0.05);
  text-align: center;
  transition: 0.3s;
}

.dev-box span {
  display: block;
  color: #00f7ff;
  font-weight: bold;
}

.dev-box small {
  color: #777;
  font-size: 12px;
}

.dev-box:hover {
  background: rgba(0, 247, 255, 0.1);
  transform: scale(1.02);
}

.dev-box2 {
  margin-top: 15px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #00ff22;
  background: rgba(0, 247, 255, 0.05);
  text-align: center;
  transition: 0.3s;
}

.dev-box2 span {
  display: block;
  color: #00ff22;
  font-weight: bold;
}

.dev-box2 small {
  color: #777;
  font-size: 12px;
}

.dev-box2:hover {
  background: rgba(0, 247, 255, 0.1);
  transform: scale(1.02);
}



/*elektro*/
.elektro-container {
  display: flex;
  gap: 150px;
  padding: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* položky (nejen linky) */
.tech-item {
  padding: 8px;
  margin-bottom: 6px;
  color: #aaa;
  border-left: 2px solid #00f7ff;
  padding-left: 10px;
  transition: 0.2s;
}

.tech-item:hover {
  color: #fff;
  transform: translateX(5px);
}

/* lepší glow pro elektro vibe */
.ruby-column h2 {
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

.tech-item {
  display: block;
  padding: 8px;
  margin-bottom: 6px;
  color: #aaa;
  border-left: 0px solid #00f7ff;
  padding-left: 10px;
  transition: 0.2s;
  text-decoration: none;
  border-radius: 6px;
}

.tech-item:hover {
  color: #fff;
  background: rgba(0, 247, 255, 0.08);
  transform: translateX(5px);
}

.logo a {
  text-decoration: none;
  color: inherit;
}



/*odkazy kontakt*/
.footer {
  background: #0a0a14;
  border-top: 1px solid #2a2a40;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.footer-section h3 {
  color: #00f7ff;
  margin-bottom: 10px;
}

.footer-section p {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-section a {
  color: #00f7ff;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

/*weby*/
.weby-container {
  display: flex;
  gap: 20px;
  padding: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.tech-item:last-of-type {
  margin-bottom: 15px;
}


/*mobil*/

@media (max-width: 768px) {
  .weby-container,
  .ruby-container,
  .elektro-container {
    flex-direction: column;
    align-items: center;
  }

  .ruby-column {
    width: 90%;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/*latest*/
.latest {
  border-left: 3px solid #00ff88;
  border-right: 3px solid #00FF88;
  color: #00ff88;
  font-weight: bold;
}

.lateste {
  border-left: 3px solid #eeff00;
  border-right: 3px solid #eeff00;
  color: #eeff00;
  font-weight: bold;
}

.latester {
  border-left: 3px solid #ff0000;
  border-right: 3px solid #ff0000;
  color: #ff0000;
  font-weight: bold;
}

.zhodiny {
  border-left: 3px solid #eeff00;;
  border-right: 3px solid #eeff00;;
  color: #eeff00;;
  font-weight: bold;
}

.readme {
  border-left: 3px solid #0011ff;
  border-right: 3px solid #0011ff;
  color: #0011ff;
  font-weight: bold;
}

.tech-item:hover {
  background: rgba(0, 247, 255, 0.1);
  box-shadow: 0 0 10px #00f7ff44;
}

/*popisky web verzí*/
.tech-item small {
  display: block;
  font-size: 14px;
  color: #30d6ec;
}

.active {
  color: #00f7ff;
  border-bottom: 2px solid #00f7ff;
}

/*animace fadeout*/
body {
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.fade-out {
  opacity: 0;
}



.progress {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  height: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.bar {
  width: 0;
  height: 100%;
  background: #04cf48;
  border-radius: 10px;
  transition: width 1.2s ease;
  box-shadow: 0 0 10px #04cf48;
}

.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.percent {
  color: #0ad859;
  font-weight: bold;
  font-size: 14px;
}



.card {
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


.nav-links a:hover {
  color: cyan;
  text-shadow: 0 0 10px cyan;
}


/*animace pozadi*/
body {
  margin: 0;
  padding: 0;

background: linear-gradient(
  -45deg,
  #020617,
  #0f172a,
  #111827,
  #1e1b4b
);

  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;

  color: white;
  font-family: Arial, sans-serif;
}

/* ANIMACE */

@keyframes gradientBG {

  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }

}


body::before {
  content: "";
  position: fixed;
  inset: 0;

  background:
    radial-gradient(circle at top left, rgba(0,255,255,0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(139,92,246,0.08), transparent 30%);

  pointer-events: none;
}


/*novinky na home*/
/* NEWS SECTION */

.news-section {
  padding: 60px 40px;
}

.news-title {
  text-align: center;
  color: #00f7ff;
  font-size: 32px;
  margin-bottom: 40px;
}

.news-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.news-card {
  width: 320px;
  background: #1b1b2f;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #2f2f4f;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.news-card:hover {
  transform: translateY(-10px);
  border-color: #00f7ff;
  box-shadow: 0 0 20px rgba(0,247,255,0.2);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 20px;
}

.news-content p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-tags span {
  background: #00f7ff;
  color: black;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
}



/* SEKCE */

.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 40px;
  color: white;
}

/* GRID */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* NEWS */

.news-section,
.best-projects,
.services-section {
  padding: 80px 10%;
}

.news-card,
.project-box,
.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.news-card,
.project-box,
.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

/* OBRÁZKY */

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CONTENT */

.news-content,
.project-box,
.service-card {
  padding: 25px;
}

.news-content h3,
.project-box h3,
.service-card h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.news-content p,
.project-box p,
.service-card p {
  color: #ccc;
  line-height: 1.6;
}

/* TAGY */

.news-tags {
  margin-top: 20px;
}

.news-tags span {
  display: inline-block;
  background: #6c63ff;
  color: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-top: 8px;
}

/* BUTTON */

.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #6c63ff;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #5848ff;
  transform: scale(1.05);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
  }
}


/* =========================
   SCROLL ANIMACE
========================= */

.card,
.news-card,
.project-box,
.service-card,
.blog-card,
.ruby-column {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.card.show,
.news-card.show,
.project-box.show,
.service-card.show,
.blog-card.show,
.ruby-column.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SPOLUPRÁCE PAGE
========================= */

.stats-card {
  width: 100%;
  max-width: 95%;
  margin: auto;
  text-align: left;
}

.stats-card h2 {
  color: #00f7ff;
  margin-bottom: 20px;
  font-size: 2rem;
}

.stats-card p {
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 16px;
}

/* hover zoom */
.news-card,
.project-box,
.service-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.news-card:hover,
.project-box:hover,
.service-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 15px 35px rgba(0,247,255,0.18);
  border-color: #00f7ff;
}

/* news grid */
.news-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* responsive */
@media (max-width: 1100px) {

  .news-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 700px) {

  .news-container {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

}


/* =========================
   CTA SPOLUPRÁCE
========================= */

.collab-section {
  display: flex;
  justify-content: center;
  padding: 20px 10px 50px;
}

.collab-btn {
  display: inline-block;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: bold;

  color: white;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    #00f7ff,
    #6c63ff
  );

  border-radius: 18px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  box-shadow:
    0 0 20px rgba(0,247,255,0.25);
}

.collab-btn:hover {
  transform: scale(1.08);

  box-shadow:
    0 0 35px rgba(0,247,255,0.45);

  background: linear-gradient(
    135deg,
    #00ffff,
    #7d74ff
  );
}



.contact-section {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.contact-card {
  width: 100%;
  max-width: 700px;

  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.1);

  border-radius: 20px;

  padding: 40px;

  backdrop-filter: blur(10px);
}

.contact-card h2 {
  color: #00f7ff;
  margin-bottom: 25px;
  text-align: center;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card input,
.contact-card textarea {

  background: #111827;

  border: 1px solid #2f2f4f;

  border-radius: 12px;

  padding: 15px;

  color: white;

  font-size: 16px;
}

.contact-card textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-card button {

  background: linear-gradient(
    135deg,
    #00f7ff,
    #6c63ff
  );

  border: none;

  padding: 16px;

  border-radius: 14px;

  color: white;

  font-size: 18px;

  font-weight: bold;

  cursor: pointer;

  transition: 0.3s;
}

.contact-card button:hover {
  transform: scale(1.03);

  box-shadow:
    0 0 25px rgba(0,247,255,0.3);
}

html {
  scroll-behavior: smooth;
}


/* =========================
   PROFILE / MEDAILONEK
========================= */

.profile-section {
  padding: 20px 40px 60px;
  display: flex;
  justify-content: center;
}

.profile-card {
  width: 100%;
  max-width: 1100px;

  display: flex;
  align-items: center;
  gap: 40px;

  padding: 35px;

  border-radius: 24px;

  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);

  box-shadow: 0 0 30px rgba(0,247,255,0.08);
}

.profile-image {
  width: 180px;
  height: 180px;

  border-radius: 50%;

  object-fit: cover;

  border: 4px solid #00f7ff;

  box-shadow:
    0 0 25px rgba(0,247,255,0.35);
}

.profile-text {
  flex: 1;
}

.profile-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #00f7ff;
}

.profile-text p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 16px;
}

/* hover efekt */

.profile-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.profile-card:hover {
  transform: translateY(-5px) scale(1.01);

  border-color: #00f7ff;

  box-shadow:
    0 0 40px rgba(0,247,255,0.18);
}

/* responsive */

@media (max-width: 800px) {

  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

}






/*elektro kategorie*/
.prvni {
  border-left: 3px solid #00c3ff;
  border-right: 3px solid #00c3ff;
  color: #00c3ff;
  font-weight: bold;
}

.nakup {
  border-left: 3px solid #cacaca;
  border-right: 3px solid #cacaca;
  color: #cacaca;
  font-weight: bold;
}

.druhy {
  border-left: 3px solid #00ffd5;
  border-right: 3px solid #00ffd5;
  color: #00ffd5;
  font-weight: bold;
}

.treti {
  border-left: 3px solid #00ff2a;
  border-right: 3px solid #00ff2a;
  color: #00ff2a;
  font-weight: bold;
}

.ctvrty {
  border-left: 3px solid #bbff00;
  border-right: 3px solid #bbff00;
  color: #bbff00;
  font-weight: bold;
}


/* =========================
   FOTOGALERIE
========================= */

.gallery-section {
  padding: 60px 40px;
}

.gallery-title {
  text-align: center;
  color: #00f7ff;
  font-size: 2rem;
  margin-bottom: 40px;
}

.gallery-grid {
  max-width: 1400px;
  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 25px;
}

.gallery-grid img {
  width: 100%;
  height: 280px;

  object-fit: cover;

  border-radius: 18px;

  border: 1px solid #2f2f4f;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04);

  border-color: #00f7ff;

  box-shadow:
    0 0 25px rgba(0,247,255,0.25);
}

/* mobil */

@media (max-width: 900px) {

  .gallery-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}

@media (max-width: 600px) {

  .gallery-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================
   LIGHTBOX
========================= */

.lightbox {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.9);

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;

  border-radius: 15px;

  border: 2px solid #00f7ff;

  box-shadow:
    0 0 40px rgba(0,247,255,0.4);
}

.close-lightbox {
  position: absolute;

  top: 20px;
  right: 30px;

  color: white;

  font-size: 50px;

  cursor: pointer;

  transition: 0.3s;
}

.close-lightbox:hover {
  color: #00f7ff;
}



/* položka galerie */

.gallery-item {
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #2f2f4f;
}

.gallery-item p {
  text-align: center;
  padding: 12px;
  color: #ccc;
  font-size: 15px;
}

/* popisek v lightboxu */

.lightbox-caption {
  position: absolute;

  bottom: 30px;

  color: white;

  font-size: 22px;

  text-align: center;

  width: 100%;
}

/* šipky */

.gallery-arrow {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  background: rgba(0,247,255,0.15);

  border: 1px solid #00f7ff;

  color: white;

  width: 60px;
  height: 60px;

  border-radius: 50%;

  font-size: 28px;

  cursor: pointer;

  transition: 0.3s;
}

.gallery-arrow:hover {
  background: rgba(0,247,255,0.35);
  box-shadow: 0 0 20px rgba(0,247,255,0.5);
}

.left-arrow {
  left: 40px;
}

.right-arrow {
  right: 40px;
}


.exe {
  border-left: 3px solid #ff38de;
  border-right: 3px solid #ff38de;
  color: #ff38de;
  font-weight: bold;
}