html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: antiquewhite;
}

nav {
    position: fixed;
    top: 20px;
    background-color: black;
    padding: 0.8%;
    border-radius: 16px;
    transition: 0.3s ease;
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
}

nav:hover {
    transform: scale(1.2);
}
.all {
    text-align: center;
    padding: 1rem;
}

.all h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.all p {
    margin-bottom: 2rem;
}

.forimg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: auto;
}

.content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    max-height: 450px;
}

.content img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: 1s ease;
}

.content img:hover {
    transform: translateY(-30px);
}

.content h3,
.content p {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.content:hover {
    transform: scale(1.05);
    max-height: 800px;
}

.content:hover h3,
.content:hover p {
    opacity: 1;
    max-height: 200px;
    margin: 0.5rem 1rem;
}

.alignments {
    margin: 22rem auto;
    width: fit-content;
    padding: 1%;

}

.iframe {
    margin-top: 20rem;
    scroll-margin-top: 64px;

}

.iframe iframe {
    width: 85%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 16px;
}

.iframe a {
    text-decoration: none;
    color: black;
}