/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: #fff;
    color: #000;
  }


@font-face {
    font-family: 'CustomHandwrittenFont'; /* Name you’ll use in CSS */
    src: url('./assets/files/RiccardoHandwriting-Regular.ttf') format('truetype'); /* Path to your font file */
    font-weight: normal;
    font-style: normal;
}

/* Body styling */
body {
    background-color: #000;
    background-image: url('./assets/images/blackground.jpg'); /* Zorg dat het heel subtiel is */
    background-size: cover;
    color: #FFF;
    font-family: 'CustomBoldFont', sans-serif; /* Use the custom font, with fallback */
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


/* Splash screen container */
.splash {
    text-align: center; /* Center text horizontally */
}

/* Main heading styles */
.splash h1 {
    font-size: 6vw; /* Responsive font size */
    font-weight: 900;
    line-height: 1.2; /* Increased line height for more spacing between lines */
    letter-spacing: -3px; /* Tighter letter spacing */
    -webkit-text-fill-color: transparent; /* For outlined text */
    -webkit-text-stroke: 1.5px #FFF; /* White outline */
    text-stroke: 1.5px #FFF; /* Fallback for non-Webkit browsers */
    margin: 0; /* Ensure consistent spacing */
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

.splash h1:nth-child(2) {
    animation-delay: 0.3s;
  }
  .splash h1:nth-child(3) {
    animation-delay: 0.6s;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* Handwritten style for "MIJN PORTFOLIO" */
.handwritten {
    font-family: 'CustomHandwrittenFont', cursive; /* Use the custom handwritten font, with fallback */
    color: #FFF; /* White color to match the main text */
    font-size: 1em; /* Same size as main text, but can be adjusted */
    font-weight: normal; /* Remove boldness for handwritten effect */
    -webkit-text-fill-color: #FFF; /* Override outline for filled text */
    -webkit-text-stroke: 0; /* Remove stroke for handwritten part */
    text-stroke: 0; /* Fallback */
    display: inline-block; /* Keep it inline with the main text */
}

/* Link styling for "KLIK HIER" */
.link {
    color: inherit; /* Inherit the white color */
    text-decoration: none; /* Remove default underline */
    -webkit-text-fill-color: transparent; /* Maintain outlined style */
    -webkit-text-stroke: 1.5px #FFF; /* Match the outline */
    text-stroke: 1.5px #FFF; /* Fallback */
    transition: -webkit-text-stroke-color 0.3s ease; /* Smooth transition for hover effect */
}

.link:hover {
    color: #FFF; /* White color to match the main text */
    font-size: 1em; /* Same size as main text, but can be adjusted */
    -webkit-text-fill-color: #FFF; /* Override outline for filled text */
    -webkit-text-stroke: 0; /* Remove stroke for handwritten part */
    text-stroke: 0; /* Fallback */
    display: inline-block; /* Keep it inline with the main text */
}

/* Media query for mobile devices (screens smaller than 768px) */
@media (max-width: 768px) {
    .splash {
        padding: 15px; /* Slightly less padding on mobile */
    }

    .splash h1 {
        font-size: 8vw; /* Larger relative font size for better readability on mobile */
        line-height: 1.4; /* More spacing between lines for mobile */
        letter-spacing: -1px; /* Slightly less tight on mobile for readability */
        -webkit-text-stroke: 1px #FFF; /* Thinner outline for mobile */
        text-stroke: 1px #FFF; /* Fallback */
    }

    .handwritten {
        font-size: 0.9em; /* Slightly smaller on mobile to fit better */
    }

    .link:hover {
        cursor: default; /* Disable custom cursor on mobile (no hover on touch devices) */
        -webkit-text-stroke-color: #FFF; /* Prevent hover color change on mobile */
        text-stroke-color: #FFF; /* Fallback */
    }
}

/* Media query for very small screens (e.g., phones in portrait mode, smaller than 480px) */
@media (max-width: 480px) {
    .splash h1 {
        font-size: 10vw; /* Even larger relative font size for very small screens */
        line-height: 1.5; /* More spacing for readability */
    }

    .handwritten {
        font-size: 0.85em; /* Slightly smaller on very small screens */
    }
}