@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

body {
    --h1: hsl(240, 48%, 54%);
    --h2: #333;
    --bg: hsl(0, 0%, 85%);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); /* modern glassy shadow */
    --li-txt-dark: hsl(0, 0%, 2%);
    --li-txt-light: hsl(0, 0%, 2%);
    --li-brd: hsl(210, 17%, 85%);
    --li-bg: hsl(0, 0%, 100%);
    --dsm-brd: hsl(198, 80%, 30%);
    --dsm-bg: hsl(198, 80%, 50%);
    --boeken-brd: hsl(82, 80%, 30%);
    --boeken-bg: hsl(82, 60%, 50%);
    --films-brd: hsl(28, 80%, 30%);
    --films-bg: hsl(28, 80%, 50%);
    --foto-brd: hsl(50, 80%, 30%);
    --foto-bg: hsl(50, 80%, 50%);
    --kalender-brd: hsl(280, 80%, 30%);
    --kalender-bg: hsl(280, 80%, 50%);
    --drive-brd: hsl(164, 80%, 30%);
    --drive-bg: hsl(280, 80%, 50%);
}

body {
    background-color: rgb(25, 25, 25); 
    background-image: 
        /* Subtle grid pattern for texture */
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        /* Sky gradient - lighter at horizon, darker at top */
        linear-gradient(to bottom, 
            #B0E0E6 0%,      /* Powder blue at top */
            #87CEEB 30%,     /* Sky blue in middle */
            #87CEFA 60%,     /* Light sky blue */
            #E0F6FF 100%     /* Very light blue at bottom */
        ),
        /* Radial gradient for sun/cloud effect */
        radial-gradient(ellipse at top center, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        /* Additional sky depth */
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 40%, rgba(135, 206, 250, 0.2) 0%, transparent 50%);
        background-repeat: no-repeat;
    background-size: 
        40px 40px,
        40px 40px,
        100% 100%,
        120% 80%,
        100% 100%,
        100% 100%;
    background-position: 
        0 0,
        0 0,
        0 0,
        center top,
        0 0,
        0 0;
    /* Normal scroll - background scrolls with content */
    background-attachment: scroll;
    font-size: 32px;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 1em;
    padding-top: 1em;
}

header {
    position: sticky;
    top: 0;
}

.logo {
    height: 150px;
    cursor: pointer;
    transform: scale(1);
    transition-duration: 0.2s;
}

.logo:hover {
    text-shadow: inset 0 0 0 1px var(--shadow);
    opacity: 1;
    transform: scale(1.05);
    transition-duration: 0.2s;
}

h1 {
    color: var(--h1);
    font-size: 1.8em;
    font-weight: 900;
    text-align: left;
    padding: 0;
    margin: 0;
    letter-spacing: -0.02em;
}

h2 {
    color: var(--h2);
    font-size: 1.2em;
    font-weight: 600;
    display: block;
    margin-block-start: 0.25em;
    margin-block-end: 0.25em;
    opacity: 0;
    transition-duration: 1s;
    letter-spacing: -0.01em;
}

ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    grid-gap: 0.5em;
    list-style: none;
    padding: 0;
}

/* FROSTED GLASS - CLEAN & SIMPLE */
li {
    /* Semi-transparent white background for frosted glass effect */
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow:
        /* Nice outer shadow */
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        /* Beveled edges - top highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        /* Beveled edges - bottom shadow */
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-style: normal;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1em 1em;
    margin: 0;
    position: relative;
    cursor: pointer;
    /* Strong frosted glass effect - backdrop blur creates the frost */
    backdrop-filter: blur(15px) saturate(100%) brightness(1);
    -webkit-backdrop-filter: blur(15px) saturate(100%) brightness(1);
    transform-style: preserve-3d;
    perspective: 1000px;
}
li a:before, li a:after {
    content: attr(title);
    padding: 50px;
    color: rgb(255, 255, 255);
    position: absolute;
}

li a:before { top: 2px; left: 2px; }
li a:after  { top: 4px; left: 4px; }

li > * {
    position: relative;
    z-index: 1;
}

li:hover {

    /* Even stronger frosted glass on hover */
    backdrop-filter: blur(15px) saturate(90%) brightness(1.1);
    -webkit-backdrop-filter: blur(15px) saturate(90%) brightness(1.1);
}

li a {
    color: #425dd366;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
}

li a img {
    height: 2rem;
}

/* Applicatie styling */

#dsm {
    border: 1px solid var(--dsm-brd);
    background-color: var(--dsm-bg);
}

#photos {
    border: 1px solid var(--foto-brd);
    background-color: var(--foto-bg);
}

#calibre {
    border: 1px solid var(--boeken-brd);
    background-color: var(--boeken-bg);
}

#plex {
    border: 1px solid var(--films-brd);
    background-color: var(--films-bg);
}

#calender {
    border: 1px solid var(--calender-brd);
    background-color: var(--calender-bg);
}

#drive {
    border: 1px solid var(--drive-brd);
    background-color: var(--drive-bg);
}

#dsm a,
#photos a,
#plex a,
#calibre a {
    color: var(--li-txt-light);
}

/* Animations */

h2.hovered {
    transform: translateX(0);
    opacity: 1;
}

.visible {
    opacity: 1;
}
.typing {
    width: 14ch;
    height: 1em;
    line-height: 1em;
    animation: typing 1s steps(14), blink 0.3s step-end 4 alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid transparent;
    padding-right: 0;
}

@keyframes typing {
    from {
        width: 0;
    }
}

@keyframes blink {
    50% {
        border-color: var(--h1);
    }
}

.favicon {
  width: 1.2em;
  height: 1.2em;
  margin-right: .8em;
  vertical-align: middle;
  display: inline;
  flex: 0 0 auto;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  opacity: 0.9;
}

li:hover .favicon {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  opacity: 1;
}

/* Make font size for h1 and body larger on mobile devices */
@media (max-width: 600px) {
    body {
        font-size: 64px;
    }

    h1 {
        font-size: 3.6em;
    }
}
