/* Reset some default browser styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    background: linear-gradient(50deg, #09568F, #09568F);
    animation: gradient-animation 10s infinite alternate; /* Apply animation */
    background-size: 400% 400%; /* Make the gradient larger for smooth animation */
}

/* Header styling */
header {
    background-color: #04243C;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}
/* Make the main content grow to fill available space */
main {
    display: flex;
    align-items: center; /* Centers items vertically */
    justify-content: center; /* Centers items horizontally */
    min-height: 70vh; /* Ensures main takes full viewport height */
    padding: 2rem;
    position: relative;
}

h1{
    color: rgb(58, 39, 39);
    position: relative;
    margin: 20px 0 0;
    font-size: 4em;
    font-weight: 900;
    z-index: 1;
    overflow: hidden;
}
h1:before{
    content: '';
    position: absolute;
    top:0;
    left: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #000 5%, #000 100% );
    animation: animate 5.5s linear forwards;
    animation-delay:2s;
}
@keyframes animate{
    0%{
        left: 110%;
    }
    100%{
        left: -20%;
    }
}
h2 span{
    color: #fff;
}
video{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    //pointer-events: none;
    //mix-blend-mode: screen;
}
/* Footer styling */
footer {
    background-color: #04243C;
    color: #09568F;
    text-align: center;
    padding: 1rem 0;

}

/* Responsive Design */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }

    header h1 {
        font-size: 1.8em;
    }

    section h2 {
        font-size: 1.4em;
    }
}
