@import url("https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900");
:root {
    --gold-color: hsl(38.25deg 76.43% 47.84%);
}
.first{
    width: 100%;
    aspect-ratio: 1792/1024;
    background-image: url("../assets/tlo.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.menu{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background: rgba(38, 38, 38, 0.86);
    position: fixed;
    top: 0;
    width: 100%;
}
.menu *{
    color: var(--gold-color);
}
.menu h1,
.menu .phone {
    opacity: 0;
    transform: translateY(25px); /* Start below their final position */
    animation: slideUp 1s ease-out forwards;
}
.logo-animation {
    width: 0px; /* Start with 0 width */
    transform-origin: center center; /* Set the origin to the center */
    animation: resizeLogo 1s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* Apply animation */
}
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0); /* Move to their final position */
    }
}

/* Apply delay to h1 and phone so they start after the logo animation */
.menu h1 {
    animation-delay: 1s; /* Start after the logo animation */
}

.menu .phone {
    animation-delay: 2s; /* Start 1s after h1 */
}
.name{
    font-size: 20px;
    color: whitesmoke;
}
.menu img{
    margin-right: 3%;
}
.menu h1{
    margin: 0;
    font-size: 1.5rem;
}
.title {
    padding-top: 30%;
}
footer{
    display: flex;
    justify-content: space-between;

}
.phone-link {
    margin-left: 0.1em;
    text-decoration: none;
    /* Add any other styles you want */
}
h4{
    color: #ffffff;
    font-family: "Montserrat", Sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.1px;
}
.footer-icons i {
    color: var(--gold-color); /* Change icon color to gold */
}
.grid{
    display: flex;
    flex-direction: column;
}
section{
    margin-bottom:1em;
}
.contact *{
    color: hsl(205, 16%, 77%);
}
footer.container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content {
	display: flex;
    font-family: "Poppins", sans-serif;
    justify-content: center;
    width: 100%;
    margin-top:5%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content h2 {
	color: #fff;
	font-size: 3em;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.05);
}

.content h2:nth-child(1) {
    color: #bfb2108c;
    -webkit-text-stroke: 2px #ffc800;
}

.content h2:nth-child(2) {
    color: hsl(195, 85%, 41%);
	animation: animate 4s ease-in-out infinite;
}
#article{
    background: var(--card-background-color);
    flex-direction: row-reverse;
}
.section{
    display: flex;
    gap:10%;
    padding: 5% 5% 5% 5%;
}
.section img{
    width: 40%;
    border-radius: 15px;
}
.section h3{
    color: var(--gold-color);
}
.company{
    /* background-image: url("../assets/rury_na_piasku.jpg");
    width: 100%;
    aspect-ratio: 1792/1024;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
    padding: 5% 5% 5% 5%;
}
@keyframes animate {
	0%,
	100% {
		clip-path: polygon(
			0% 45%,
			16% 44%,
			33% 50%,
			54% 60%,
			70% 61%,
			84% 59%,
			100% 55%,
			100% 100%,
			0% 100%
		);
	}

	50% {
		clip-path: polygon(
			0% 60%,
			15% 65%,
			34% 66%,
			51% 65%,
			67% 50%,
			84% 45%,
			100% 46%,
			100% 100%,
			0% 100%
		);
	}
}
@keyframes resizeLogo {
    from {
        width: 0px;
    }
    to {
        width: 100px; /* Resize to 100px */
    }
}

@media screen and (max-width: 800px) {
    .first{
        height: 500px;
    }
    .menu img{
        width: 80px;
    }
    .menu h1{
        display: none;
    }
    .content h2{
        font-size: 1.8em;
    }
    .content h2:nth-child(1) {
        color: #bfb2108c;
        -webkit-text-stroke: 1px #ffc800;
    }
    .content {
        margin-top: 10%;
    }
    .title {
        padding-top: 300px;

    }

    .menu .phone {
        animation-delay: 1s; /* Start 1s after h1 */
    }
    .section, #article{
        flex-direction: column;
    }
    .section img{
        width: 80%;
    }
    footer.container{
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    footer iframe{
        width: 100%;
        height: 300px;
        margin-bottom: 10%;
    }
}