html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;

    scroll-behavior: smooth;
}

@font-face {
    font-family: Nexa;
    src: url(../font/Nexa-Heavy.ttf);
}

@font-face {
    font-family: Tommy-Medium;
    src: url(../font/Tommy-Medium.otf);
}

@font-face {
    font-family: Tommy-Thin;
    src: url(../font/Tommy-Thin.otf);
}

@keyframes HoverPicture {
    0% { 
        opacity: 0.5;
    }
    100% { 
        opacity: 0.3;
    }
}

@keyframes UnHoverPicture {
    0% { 
        opacity: 0.3;
    }
    100% { 
        opacity: 0.5;
    }
}

@keyframes MoveTextUp {
    0% { 
        margin-top: 0px;
    }
    100% { 
        margin-top: -25px;
    }
}

@keyframes MoveTextDown {
    0% { 
        margin-top: -25px;
    }
    100% { 
        margin-top: 0px;
    }
}

header {
    display: flex;
    justify-content: center;
    background-color: rgb(0, 0, 0);
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 10;
}

header .Container {
    width: 500px;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;

    padding: 20px;
}

header .Container a:nth-child(1) {
    color: white;
    cursor: default;
}

header .Container a {
    font-size: 15px;
    text-decoration: none;
    color: white;
    font-family: Nexa;
}

.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/HomeSecurity.png");
    height: 70vh; /* Use viewport height for responsive design */
    min-height: 450px; /* Ensures it never goes below 500px */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-image .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero-image .container img {
    width: 800px;
    margin-top: 150px;
}

.hero-image .container a {
    font-size: 20px;
    text-decoration: none;
    color: white;
    font-family: Nexa;

    transition: 0.3s;
    background-color: #2484f1;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 25px;

    margin-top: 75px;
}

.hero-image .container a:hover {
    transition: 0.3s;
    padding: 12px;
    padding-left: 22px;
    padding-right: 22px;
    background-color: #ffffff;
    color: #2484f1;
}

.Second-Part {
    width: 100%;
    height: 550px;
}

.Second-Part .Information {
    margin-top: 50px;
    font-family: Tommy-Medium;
    display: flex;
    width: 100%;

    display: flex;
    justify-content: space-evenly;
}

.Second-Part .Information .Left-Part .Name {
    font-size: 15px;
    color: #2484f1;
}

.Second-Part .Information .Left-Part .Information {
    display: flex;
    flex-direction: column;
    width: 500px;
}

.Second-Part .Information .Left-Part .Information .Main-Text {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 60px;
    color: rgb(29, 29, 29);
    margin-top: -30px;
}

.Second-Part .Information .Left-Part .Information .Text1 {
    font-family: Tommy-Thin;
    font-size: 17px;
    color: rgb(80, 80, 80);
    margin-top: 20px;

    letter-spacing: 2px;
    word-spacing: 5px;
    position: relative;
    text-align: left;
    line-height: 25px;
}

.Second-Part .Information .Right-Part .Information {
    display: flex;
    flex-direction: column;
    width: 500px;
}

.Second-Part .Information .Right-Part .Information .Main-Text {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 60px;
    color: rgb(29, 29, 29);
    margin-top: -30px;
}

.Second-Part .Information .Right-Part .Information ul {
    list-style-type: none;
    margin-left: -40px;
    display: grid; /* Switch to grid */
    grid-template-columns: repeat(3, 1fr); /* 3 columns with equal width */
    gap: 15px; /* Space between the items */
}

.Second-Part .Information .Right-Part .Information ul li {
    position: relative;
    padding-left: 35px;
    font-size: 20px;
    margin-top: 15px;
}

.Second-Part .Information .Right-Part .Information ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22currentColor%22%20class%3D%22bi%20bi-check-lg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M12.736%203.97a.733.733%200%200%201%201.047%200c.286.289.29.756.01%201.05L7.88%2012.01a.733.733%200%200%201-1.065.02L3.217%208.384a.757.757%200%200%201%200-1.06.733.733%200%200%201%201.047%200l3.052%203.093%205.4-6.425z%22%2F%3E%3C%2Fsvg%3E') no-repeat center center;
    background-size: contain;
}

.Third-Part {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: row;
    background-color: black;
    position: relative;
    overflow: hidden;
}

.Third-Part .First {
    background: url("../img/Toezicht.png") no-repeat center center;
    background-size: 100% 100%; /* Stretches the image to fully cover the div */
    height: 100%;
    width: 33.33%; /* Ensures each div takes 1/3 of the total width */
    flex: 1; /* Distributes space evenly */
    position: relative; /* Makes it possible to position the text over the image */
    animation: UnHoverPicture 0.75s forwards; /* Applies UnHoverPicture animation */
    transition: opacity 0.75s ease-in-out; /* Smooth transition for opacity */
}

.Third-Part .First:hover {
    animation: HoverPicture 0.75s forwards; /* Applies HoverPicture animation when hovered */
}

.Third-Part .Second {
    background: url("../img/Winkel.png");
    background-size: contain; /* Makes sure the image fits entirely within the div */
    height: 100%;
    width: 33.33%; /* Ensures each div takes 1/3 of the total width */
    flex: 1; /* Distributes space evenly */
    position: relative; /* Makes it possible to position the text over the image */
    animation: UnHoverPicture 0.75s forwards; /* Applies UnHoverPicture animation */
    transition: opacity 0.75s ease-in-out; /* Smooth transition for opacity */
}

.Third-Part .Second:hover {
    animation: HoverPicture 0.75s forwards; /* Applies HoverPicture animation when hovered */
}

.Third-Part .Third {
    background: url("../img/Brandwacht.png");
    background-size: contain; /* Makes sure the image fits entirely within the div */
    height: 100%;
    width: 33.33%; /* Ensures each div takes 1/3 of the total width */
    flex: 1; /* Distributes space evenly */
    position: relative; /* Makes it possible to position the text over the image */
    animation: UnHoverPicture 0.75s forwards; /* Applies UnHoverPicture animation */
    transition: opacity 0.75s ease-in-out; /* Smooth transition for opacity */
}

.Third-Part .Third:hover {
    animation: HoverPicture 0.75s forwards; /* Applies HoverPicture animation when hovered */
}

.Third-Part img:hover {
    animation: HoverPicture 0.75s forwards;
}

.Text {
    animation: MoveTextDown 0.75s forwards;
    color: white; /* Makes the text white */
    font-size: 24px; /* Adjust font size as needed */
    font-family: Nexa;
    text-align: center; /* Centers the text horizontally */
    z-index: 10; /* Ensures the text appears above the image */
    
    /* Flexbox centering */
    display: flex;
    justify-content: center; /* Centers the text horizontally */
    align-items: center; /* Centers the text vertically */
    
    height: 100%; /* Ensures the Text container takes the full height of its parent */
    width: 100%; /* Ensures the Text container takes the full width of its parent */
}

.Text:hover {
    animation: MoveTextUp 0.75s forwards;
}

.Fourth-Part  {
    width: 100%;
    height: 600px;
    background-color: #2484f1;
    display: flex;
    flex-direction: row;
}

footer {
    width: 100%;
    background-color: black;
    height: 200px;
    text-align: center;
}

footer .Container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

footer .Container .Sec1 ul {
    list-style-type: none;
    padding-top: 30px;
}

footer .Container .Sec1 ul li a {
    text-decoration: none;
    list-style-type: none;
    font-size: 20px;
    color: white;
    font-family: Nexa;
}

footer .Container .Sec2 .Main-Text {
    padding-top: 30px;
    padding-bottom: 5px;
    font-size: 20px;
    color: white;
    font-family: Nexa;
    text-align: left;
}

footer .Container .Sec2 .number,
footer .Container .Sec2 .email {
    padding-top: 10px;
    font-size: 15px;
    text-align: left;
    color: white;
    font-family: Tommy-Thin;
}

footer .Container .Sec3 img {
    padding-top: 10px;
    width: 150px;
}

@media (max-width: 1000px) {
    .Second-Part {
        height: 900px;
    }

    .Second-Part .Information {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .Second-Part .Information .Right-Part .Information {
        margin-top: 80px;
    }

    .Second-Part .Information .Left-Part .Name {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 845px) {
    .hero-image {
        height: 50%;
    }

    .hero-image .container img {
        width: 600px;
        margin-top: 110px;
    }

    .hero-image .container a {
        font-size: 20px;
        margin-top: 50px;
    }
}

@media (max-width: 630px) {
    .hero-image {
        height: 40%;
    }

    .hero-image .container img {
        width: 450px;
        margin-top: 140px;
    }

    .hero-image .container a {
        font-size: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .Second-Part {
        height: 1300px;
    }

    .hero-image {
        height: 35%;
    }

    .hero-image .container img {
        width: 400px;
        margin-top: 120px;
    }

    .hero-image .container a {
        font-size: 20px;
        margin-top: 50px;
    }
}

@media (max-width: 415px) {
    .Second-Part {
        height: 1300px;
    }

    .hero-image {
        height: 35%;
    }

    .hero-image .container img {
        width: 300px;
        margin-top: 150px;
    }

    .hero-image .container a {
        font-size: 20px;
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .Second-Part .Information .Left-Part .Information .Main-Text {
        font-size: 30px; /* Smaller font size for smaller screens */
    }

    .Second-Part .Information .Left-Part .Information {
        width: 300px;
    }

    .Second-Part .Information .Left-Part .Information .Text {
        font-size: 12px;
    }

    .Second-Part .Information .Right-Part .Information ul {
        grid-template-columns: repeat(1, 1fr);
    }
}


@media (max-width: 500px) {
    footer .Container .Sec3 img {
        width: 100px;
    }
}

@media (max-width: 410px) {
    footer .Container .Sec3 img {
        width: 50px;
    }
}

@media screen and (max-width: 480px) {
    /* Stack elements vertically when screen width is 480px or less */
    .Third-Part {
        flex-direction: column; /* Stack elements vertically */
        height: 1000px; /* Allow the height to adjust based on content */
    }

    /* Adjust the height of each section to 33.33% when stacked */
    .Third-Part .First, .Third-Part .Second, .Third-Part .Third {
        width: 100%; /* Full width when stacked */
        height: auto; /* Allow sections to adjust based on content */
    }
}

.Fourth-Part {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Nexa;
    border-radius: 8px;
    margin-top: 100px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
}
h1 {
    text-align: center;
    color: #2484f1;
    margin-bottom: 30px;
}
label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}
input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
}
textarea {
    height: 150px;
    resize: none;
}
button {
    background-color: #2484f1;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    width: 107%;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #1a6bdb;
}

@media screen and (max-width: 720px) {
    .Fourth-Part {
        max-width: 400px;
    }
}

@media screen and (max-width: 480px) {
    .Fourth-Part {
        max-width: 300px;
    }
}

@media screen and (max-width: 390px) {
    .Fourth-Part {
        max-width: 200px;
    }
}