* {
    font-family: 'Exo 2', Sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    min-height: 100vh;
    color: #a8a8a8;
    display: flex;
    flex-direction: column;
}

header {
  background-color: #000000;
  padding: 16px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Purple Glow Across Top */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(147, 112, 219, 0.1) 20%, 
        rgba(147, 112, 219, 0.3) 40%,
        rgba(147, 112, 219, 0.5) 50%,
        rgba(147, 112, 219, 0.3) 60%,
        rgba(147, 112, 219, 0.1) 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.logo-section {
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(98, 77, 227, 0); /* Start with transparent shadow */
}

.logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(207, 183, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
}

.logo-section:hover {
    box-shadow: 0 4px 8px rgba(98, 77, 227, 0.15);
}

.logo-section:hover::before {
    animation: shimmer 1.2s ease-in-out;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 150%;
    }
}

.logo {
    height: 28px;
    transition: all 0.2s;
    margin-top: 3px;
    margin-right: 4px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a8a8a8;
    padding: 5px 0;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #9370db;
    visibility: hidden;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::before {
    visibility: visible;
    width: 100%;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.error-container {
    width: 700px;
    height: 500px;
    text-align: center;
    padding: 30px;
    background-color: #222;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.content-section {
    width: 100%;
    margin: 80px 0;
}

.error-code {
    font-size: 90px;
    font-weight: 800;
    background: linear-gradient(135deg, #F5D14B, #D9A420);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.error-message {
    font-size: 24px;
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
}

.error-details {
    font-size: 16px;
    color: #a8a8a8;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

.button-section {
    width: 100%;
    margin-bottom: 80px;
}

.home-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(to right, rgba(4, 4, 50, 0.8), rgba(56, 1, 95, 0.8));
    color: rgba(255,255,255, 0.8);
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.home-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .error-code {
        font-size: 70px;
    }
    
    .error-message {
        font-size: 20px;
    }
    
    .error-details {
        font-size: 14px;
    }
}