/* =======================================
   🌌 GLOBAL RESET
======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #050510;
  color: #fff;
  overflow-x: hidden;
}

/* =======================================
   🌠 NAVBAR
======================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.logo span {
  color: #08fdd8;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: #aaa;
  margin-left: 2rem;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #08fdd8;
  text-shadow: 0 0 8px #08fdd8;
}

/* MOBILE NAV TOGGLE */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #08fdd8;
  cursor: pointer;
  z-index: 11;
}

/* =======================================
   🌠 INTRO ANIMATION
======================================= */
.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at center, #02020a, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeOut 2s ease 3s forwards;
}

.intro-logo {
  width: 200px;
  opacity: 0;
  filter: drop-shadow(0 0 20px #08fdd8);
  animation: glowLogo 3s ease forwards;
}

@keyframes glowLogo {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 30px #08fdd8); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 15px #08fdd8); }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* =======================================
   🌌 HERO SECTION
======================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0 1rem;
}

.hero .content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeIn 2s ease;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  color: #ccc;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta {
  background: linear-gradient(90deg, #08fdd8, #00c6ff);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta.secondary {
  background: none;
  border: 2px solid #08fdd8;
  color: #08fdd8;
}

.cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #08fdd8;
}

/* =======================================
   🌌 STARFIELD BACKGROUND
======================================= */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* =======================================
   🪐 PRODUCTS SECTION
======================================= */
.products {
  padding: 8rem 3rem;
  text-align: center;
  background: #0b0b1a;
}

.products h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(8, 253, 216, 0.3);
}

.product-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* =======================================
   🌠 PORTFOLIO
======================================= */
.portfolio-hero {
  height: 60vh;
  background: radial-gradient(circle at center, rgba(8, 253, 216, 0.15), transparent);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.portfolio-gallery {
  padding: 6rem 3rem;
  background: #0b0b1a;
}

.gallery-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #08fdd8;
  text-shadow: 0 0 8px rgba(8, 253, 216, 0.4);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 16, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  color: #08fdd8;
  margin-bottom: 0.5rem;
}

.overlay p {
  color: #ccc;
  font-size: 0.9rem;
}

/* =======================================
   💫 ABOUT FRANTISEK
======================================= */
.about-frantisek {
  background: radial-gradient(circle at center, rgba(8, 253, 216, 0.08), #050510);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s ease-out;
}

.about-frantisek.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-frantisek .about-content {
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
  color: #ccc;
}

.about-frantisek h2 {
  color: #08fdd8;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(8, 253, 216, 0.4);
}

.about-frantisek p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-frantisek strong {
  color: #08fdd8;
  font-weight: 600;
}

/* =======================================
   🌌 FOOTER
======================================= */
.footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #0b0b1a, #050510);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
  color: #08fdd8;
  text-decoration: none;
}

.footer p {
  margin-bottom: 0.5rem;
}

.contact-links a {
  color: #08fdd8;
  font-weight: 500;
  text-decoration: none;
  margin-left: 0.4rem;
}

.contact-links a:hover {
  text-shadow: 0 0 10px rgba(8, 253, 216, 0.7);
}

/* =======================================
   🌠 FLOATING CONTACT BUTTON
======================================= */
.floating-contact {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #08fdd8 0%, #00c6ff 100%);
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(8, 253, 216, 0.8);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  animation: glowPulse 2.5s infinite ease-in-out;
}

.floating-contact:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(8, 253, 216, 1);
}

.floating-contact svg {
  width: 28px;
  height: 28px;
  stroke: #000;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 15px rgba(8, 253, 216, 0.6); }
  50% { box-shadow: 0 0 30px rgba(8, 253, 216, 1); }
  100% { box-shadow: 0 0 15px rgba(8, 253, 216, 0.6); }
}

/* =======================================
   📱 RESPONSIVE DESIGN
======================================= */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(12px);
    transition: height 0.4s ease;
  }

  .nav-links.active { height: 230px; }

  .nav-links a {
    margin: 1rem 0;
    font-size: 1.2rem;
  }

  .hero h2 { font-size: 1.8rem; line-height: 1.3; }
  .hero p { font-size: 1rem; line-height: 1.6; }

  .cta, .cta.secondary {
    width: 90%;
    margin: 0.5rem auto;
    display: block;
  }

  .product-grid, .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-frantisek { padding: 4rem 1.5rem; }
  .about-frantisek h2 { font-size: 1.9rem; }

  .footer { padding: 3rem 1.5rem; }
  .footer h2 { font-size: 1.3rem; margin-bottom: 1rem; }
  .footer p { line-height: 1.6; font-size: 0.95rem; }

  .floating-contact {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .floating-contact svg {
    width: 25px;
    height: 25px;
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
