@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    padding: 0;
    margin: 0;
    font-family:'Poppins', sans-serif ;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display: none;
}

body {
   width: 100%;
   height: 100vh;
   background-color: #030303; 
}

nav {
    width: 100%;
    height: 10vh;
    position: sticky;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    color: #f0f8ff;
    font-weight: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color:#229cff;
    text-shadow: 0 0 10px #229cff;
}

.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    display: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links {
    display: flex;
}

.nav-container .links a{
    position: relative;
    font-size: 1.5rem;
    color: white;
    margin: 0 30px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

/* Linky v navigaci */
.nav-container .links a {
    position: relative;
    font-size: 1.5rem;
    color: white;
    margin: 0 30px;
    text-decoration: none;
    font-weight: 550;
    transition: color 0.3s linear;
}

/* Spodní čára animace */
.nav-container .links a::after {
    content: "";
    position: absolute;
    bottom: -3px;       /* vzdálenost od textu */
    left: 0;
    width: 0;           /* začíná u 0 */
    height: 3px;
    background-color: #229cff;
    transition: width 0.3s ease;  /* plynulý přechod */
}

/* Hover efekt */
.nav-container .links a:hover::after {
    width: 100%;        /* čára se rozšíří přes celý text */
}

.nav-container .links a::before {
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #229cff;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before {
    color: #229cff;
}

.dropdown {
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px #030303;
    transition: 0.2s linear;
}

.dropdown .links a{
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover {
    background-color: #229cff;
}

.main-container {
    align-items: center;
}

.main-container h1 {
    color: #f0f8ff;
    text-align: center;
    justify-content: center;
    font-weight: 600;
    font-size: 3rem;
    margin-top: 3%;
    margin-bottom: 3%;
}

.main-container h1 span {
    color:#229cff;
    text-shadow: 0 0 10px #229cff;
} 

@media (max-width: 884px) {
    nav .logo{
        position: absolute;
        top: 20px;
        left: 15px;
        font-size: 1.2rem;
    }

    .main-container {
        display: flex;
        flex-direction: column;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,
    .cancel{
        display: block;
    }

    .main-container .content{
        width: 75%;
        height: 75%;
    }

    .project-grid {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 35px;
        padding-top: 50px;
        gap: 25px;
    }

    footer {
        display: none;
    }
}

@media (max-width: 430px) {
    .main-container .content{
        width: 80%;
    }
}

.overview-section {
    padding: 80px 20px;
    text-align: center;
}

.overview-section .main-container h2 {
    color: #f0f8ff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.overview-section .main-container h2 span {
    color: #229cff;
    text-shadow: 0 0 10px #229cff;
}

.overview-section .main-container p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.stat-card {
    background: #0f0f0f;
    border-radius: 14px;
    padding: 30px 20px;
    border: 1px solid #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 156, 255, 0.2);
    border-color: #229cff;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #229cff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #229cff;
}

.stat-label {
    color: #f0f8ff;
    font-size: 1rem;
    font-weight: 500;
}

.tech-overview {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-overview h3 {
    color: #f0f8ff;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.1);
}

.tech-item i {
    font-size: 3rem;
    color: #229cff;
    transition: color 0.3s ease;
}

.tech-item:hover i {
    color: #4da6ff;
}

.tech-item span {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px 100px;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px 80px;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px 60px;
    }
}

.project-card {
    background: #0f0f0f;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(34, 156, 255, 0.25);
    border-color: #229cff;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: #f0f8ff;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.project-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.project-status-dot .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-status-dot.online .dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.project-status-dot.offline .dot {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.project-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.html {
    background: linear-gradient(135deg, #e34f26, #f06529);
    color: #fff;
}

.tag.css {
    background: linear-gradient(135deg, #1572b6, #33a9dc);
    color: #fff;
}

.tag.js {
    background: linear-gradient(135deg, #f7df1e, #f4c20d);
    color: #333;
}

.tag.php {
    background: linear-gradient(135deg, #777bb4, #8892bf);
    color: #fff;
}

.tag.sql {
    background: linear-gradient(135deg, #4479a1, #5c8fbc);
    color: #fff;
}

.btn-view {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #229cff, #1a7bcc);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 156, 255, 0.3);
    margin-top: auto;
}

.btn-view:hover {
    background: linear-gradient(135deg, #1a7bcc, #1560a0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 156, 255, 0.4);
}

.btn-view:active {
    transform: translateY(0);
}

.project-status {
    font-size: 20px;
    color: white;
}

.project-status-dot {
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
}

.project-status-dot .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.project-status-dot.online .dot {
    background: #22c55e;
}

.project-status-dot.offline .dot {
    background: #ef4444;
}

.project-status.online strong {
    color: #22c55e; /* green */
}

.project-status.offline strong {
    color: #ef4444; /* red */
}

.tags {
    margin-top: 15px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

footer {
  width: 100%;
  background-color: #030303;
  color: #fff;
  padding: 40px 20px 20px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid #1a1a1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1.5rem;
  color: #229cff;
  text-shadow: 0 0 8px #229cff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -3px;
  background-color: #229cff;
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  color: #229cff;
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.footer-social a {
  color: #229cff;
  font-size: 1.3rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  color: #fff;
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #229cff);
}

.footer-copy {
  margin-top: 25px;
  font-size: 0.85rem;
  color: #555;
}