/* Nord Color Palette */
:root {
    --nord0: #2E3440; /* Polar Night */
    --nord1: #3B4252; /* Polar Night */
    --nord2: #434C5E; /* Polar Night */
    --nord3: #4C566A; /* Polar Night */
    --nord4: #D8DEE9; /* Snow Storm */
    --nord5: #E5E9F0; /* Snow Storm */
    --nord6: #ECEFF4; /* Snow Storm */
    --nord7: #8FBCBB; /* Frost */
    --nord8: #88C0D0; /* Frost */
    --nord9: #81A1C1; /* Frost */
    --nord10: #5E81AC; /* Frost */
    --nord11: #BF616A; /* Aurora */
    --nord12: #D08770; /* Aurora */
    --nord13: #EBCB8B; /* Aurora */
    --nord14: #A3BE8C; /* Aurora */
    --nord15: #B48EAD; /* Aurora */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    user-select: none;
    overflow: hidden;
    color: #ECEFF4;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 48px;
    height: 48px;
}

.tooltip {
  position: absolute;
  bottom: -50%; /* Position under the icon */
  /*bottom: 120%; /* Position above the icon */
  left: 35%;
  transform: translateX(-50%) translateY(10px);
  background-color: #3B4252; /* Nord1 */
  color: #ECEFF4; /* Nord6 */
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.icon-wrapper:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

a svg {
    transition: transform 0.3s ease-in-out, fill 0.3s ease-in-out;
    width: 48px;
    height: 48px;
    fill: #4C566A; /* Nord4 - main icon color */
}

a svg:hover {
    transform: scale(1.1);
    fill: #A3BE8C; /* Nord8 - hover color */
}


a {
    color: var(--nord8); /* or any Nord color you prefer */
    text-decoration: none;
}

/* Loader Styles */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2E3440; /* Nord dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loader {
    border: 8px solid #D8DEE9;
    border-top: 8px solid #A3BE8C;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2E3440; /* Nord dark background */
    z-index: 0;
}

main {
    position: absolute;
    top: 35%;
    width: 100%;
    text-align: center;
    z-index: 2;
}

h1 {
    font-size: 120px;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
    margin-bottom: 5px; 
    color: #ECEFF4; /* Nord6 - main text color */
    transition: color 0.4s ease-in-out; /* smoother transition */
}

h1 strong {
    font-weight: 700;
}

h1 em {
    font-style: italic;
    font-weight: 50;
}

h1:hover {
    color: #A3BE8C; /* Nord8 - hover color */
}

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

canvas#particles {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}
