/* Base Styles - Same as index.min.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: "Poppins", serif;
  background-color: #FFF;
}

/* Error Section */
#error-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url(static/images/pozadina2.webp);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Container */
.container1 {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

/* Cloud Background */
.cloud {
  position: fixed;
  top: 0;
  left: 0;
  width: 50vw;
  height: 100vh;
  z-index: -1;
  transform: translateY(-10%);
  pointer-events: none;
}

/* Header Styles */
.site-header {
  position: relative;
  z-index: 100;
  background: transparent;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.logo {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bold;
  color: #FCF8FF;
  margin-left: 35px;
}

/* Sidebar Toggle */
.sidebar-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #5633D8;
  margin-right: 20px;
}

.menu-icon {
  font-size: 2rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  display: none;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #FCF8FF;
  box-shadow: -2px 0 10px rgba(0, 0, 0, .2);
  transition: right .3s ease;
  z-index: 1000;
}

.sidebar.open {
  right: 0;
}

.close-sidebar {
  position: absolute;
  top: 20px;
  right: 15px;
  background: none;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
  color: #5633D8;
}

.sidebar-nav ul {
  list-style: none;
  padding: 20px;
}

.sidebar-nav ul li p {
  display: block;
  text-decoration: none;
  color: #5633D8;
  width: 90%;
  font-size: 1rem;
  padding: 10px 0;
  transition: color .3s ease;
  margin-bottom: 10px;
  padding-left: 5px;
  cursor: pointer;
}

.sidebar-nav ul li p.active,
.sidebar-nav ul li p:hover {
  color: #FCF8FF;
  background: #5633D8;
  border-radius: 5px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  margin-right: 4rem;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: clamp(10px, 2vw, 20px);
}

.nav-links ul li a {
  text-decoration: none;
  color: #5633D8;
  font-size: clamp(.8rem, 1.5vw, 1rem);
  transition: all .3s ease;
}

.nav-links ul li a.active,
.nav-links ul li a:hover {
  text-decoration: underline;
  font-weight: bold;
}

/* Error Content */
.error-content {
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 20px;
  min-height: 0;
}

.container-fluid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 50;
}

/* 404 Container with decorative elements */
.error-404-container {
  position: relative;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  display: inline-block;
  z-index: 50;
}

/* Glitch Effect for 404 */
.display-1 {
  font-size: clamp(8rem, 15vw, 18rem);
  line-height: 0.9;
  color: #FCF8FF;
  font-weight: 700;
  font-family: "Poppins", serif;
  position: relative;
  animation: float 3s ease-in-out infinite;
  text-shadow:
    0 0 20px rgba(252, 248, 255, 0.5),
    0 0 40px rgba(86, 51, 216, 0.3);
  z-index: 50;
}

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

/* Glitch animation */
.glitch-effect {
  position: relative;
}

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

.glitch-effect::before {
  animation: glitch-1 2.5s infinite;
  color: #5633D8;
  z-index: -1;
}

.glitch-effect::after {
  animation: glitch-2 2.5s infinite;
  color: rgba(255, 255, 255, 0.3);
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(3px, -3px); }
  40% { transform: translate(3px, 3px); }
  60% { transform: translate(-3px, -3px); }
  80% { transform: translate(-3px, 3px); }
}

/* Floating decorative elements */
.floating-cube,
.floating-circle {
  position: absolute;
  opacity: 0.6;
  animation: rotate-float 6s ease-in-out infinite;
}

.floating-cube {
  width: clamp(60px, 8vw, 120px);
  height: auto;
}

.floating-circle {
  width: clamp(50px, 6vw, 100px);
  height: auto;
}

.cube-1 {
  top: -10%;
  right: -15%;
  animation-delay: 0s;
}

.circle-1 {
  bottom: -10%;
  left: -10%;
  animation-delay: 1s;
}

@keyframes rotate-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.8;
  }
}

/* Error Message */
.error-message {
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-message h2 {
  font-size: clamp(1.5rem, 3vw, 3.5rem);
  color: #FCF8FF;
  font-weight: 700;
  margin-bottom: clamp(0.8rem, 1.5vw, 1.5rem);
  font-family: "Poppins", serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.error-description {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: #FCF8FF;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-family: "Poppins", serif;
  font-weight: 500;
}

.suggestion-text {
  margin-top: clamp(0.5rem, 1vw, 1rem);
}

.suggestion-text p {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: #FCF8FF;
  font-family: "Poppins", serif;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.button-group {
  display: flex;
  gap: clamp(15px, 2vw, 20px);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 1.2s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FCF8FF;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 600;
  padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 32px);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.btn-custom:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #5633D8 0%, #7B5FE8 100%);
  box-shadow: 0 4px 20px rgba(86, 51, 216, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4526B8 0%, #5633D8 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(86, 51, 216, 0.6);
  color: #FCF8FF;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(252, 248, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(252, 248, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
  color: #FCF8FF;
}

.arrow-icon {
  width: clamp(16px, 2vw, 20px);
  height: auto;
  margin-left: clamp(8px, 1.5vw, 10px);
}

/* Media Queries */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .sidebar {
    display: block;
  }

  .sidebar-toggle {
    display: block;
  }

  .logo {
    font-size: 1rem;
  }

  .display-1 {
    font-size: 6rem;
  }

  .error-message h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .error-description {
    font-size: 1rem;
  }

  .suggestion-text p {
    font-size: 0.85rem;
  }

  .cloud {
    width: 70vw;
  }

  .floating-cube {
    width: 60px;
  }

  .floating-circle {
    width: 50px;
  }

  .button-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-custom {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 460px) {
  .display-1 {
    font-size: 5rem;
  }

  .error-message h2 {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .error-description {
    font-size: 0.9rem;
  }

  .suggestion-text p {
    font-size: 0.8rem;
  }

  .btn-custom {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .cloud {
    width: 80vw;
  }

  .floating-cube {
    width: 50px;
  }

  .floating-circle {
    width: 40px;
  }

  .cube-1 {
    right: -10%;
  }

  .circle-1 {
    left: -5%;
  }
}

@media (min-width: 768px) and (max-width: 999px) {
  .logo {
    font-size: 1.2rem;
  }

  .nav-links ul li a {
    font-size: 0.9rem;
  }

  .display-1 {
    font-size: 10rem;
  }

  .error-message h2 {
    font-size: 2.5rem;
  }

  .btn-custom {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .floating-cube {
    width: 90px;
  }

  .floating-circle {
    width: 75px;
  }
}

