* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f6fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    z-index: 100;
    background-color: #f4f6fb;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    margin-left: 16px;
}

.logo-text {
    font-family: 'Itim';
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.sign-in-btn {
    width: 96px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-right: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sign-in-text {
    font-size: 16px;
    font-weight: 600;
}

.sign-in-img {
    height: 22px;
    margin-right: 6px;
}

.sign-in-btn:hover {
    background-color: #333;
    transition: background-color 0.5s ease;
    cursor: pointer;
}
.sign-in-btn:hover .sign-in-text {
    color: #fff;
    transition: color 0.3s ease;
}
.sign-in-btn:hover .sign-in-img {
    filter: invert(1);
    transition: filter 0.3s ease;
}

main {
    margin-top: 200px;
    margin-right: 240px;
    margin-bottom: 240px;
    margin-left: 140px;
    display: flex;
    justify-content: space-between;
}

.main-heading {
    font-size: 44px;
    margin-bottom: 16px;
    font-family: 'Abyssinica SIL';
}

.main-subheading {
    font-size: 22px;
    margin-bottom: 56px;
    font-family: 'Abyssinica SIL';
}

.features {
    list-style: none;
    margin-bottom: 72px;
    font-size: 26px;
    font-family: 'Abyssinica SIL';
}

.features li {
    margin-bottom: 8px;
}

.cta-btn {
    height: 48px;
    font-size: 18px;
    padding-top: 10px;
    padding-right: 18px;
    padding-bottom: 10px;
    padding-left: 18px;
    border-radius: 8px;
    border: 1px solid #111;
    background: #fff;
    cursor: pointer;
    animation: Pulse 2s infinite;
}

.cta-btn:hover {
    background-color: #111;
    color: #fff;
    animation: none;
    transition: all 0.5s ease;
}

.cards {
    position: relative;
    margin-top: -16px;
    right: 60px;
    animation: CardFadeIn 1s ease forwards;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background-color: #bdbdbd;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 18px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    /* x-off y-off blur(distance) color */
}

.card-img {
    width: 320px;
    height: 200px;
    background: #fff;
    border: 1px solid #000;
    object-fit: cover;
}

.card-disc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.card1 {
    left: 50%;
    transform: translateX(-50%) rotate(-5deg) translateX(48px);
}

.card2 {
    left: 50%;
    transform: translateX(-50%) rotate(-20deg);
}

.card3 {
    left: 50%;
    transform: translateX(-50%) rotate(-35deg) translateX(-48px);
}
.card1:hover {
    transform: translateX(-50%) rotate(-5deg) translateX(48px) scale(1.05);
    transition: all 0.5s ease;
    z-index: 10;
}
.card2:hover {
    transform: translateX(-50%) rotate(-20deg) scale(1.05);
    transition: transform 0.5s ease;
    z-index: 10;
}
.card3:hover {
    transform: translateX(-50%) rotate(-35deg) translateX(-48px) scale(1.05);
    transition: transform 0.5s ease;
    z-index: 10;
}

.footer {
    margin-top: auto;
    padding-top: 40px;
    padding-right: 56px;
    padding-bottom: 24px;
    padding-left: 56px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-family: 'Itim';
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 12px;
    color: #666;
}

@media (max-width: 1100px) {
    main {
        flex-direction: column;
        align-items: center;
        margin-top: 96px;
        margin-right: auto;
        margin-bottom: 176px;
        margin-left: auto;
        gap: 64px;
    }

    .cards {
        width: 400px;
        height: 400px;
        margin-top: 0;
        margin-right: auto;
        margin-bottom: 0;
        margin-left: auto;
        right: 0;
        transform: translate(0);
    }
}

@media screen and (max-width: 800px) {
    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
    .card {
        width: 300px;
        height: 300px;
    }
    .card-img {
        width: 240px;
        height: 150px;
    }
    .cards {
        top: 70px;
        transform: translate(0);
    }
    .main-heading {
        font-size: 36px;
    }
    .main-subheading {
        font-size: 20px;
    }
    .features {
        font-size: 20px;
    }
    .cta-btn {
        font-size: 16px;
        height: 42px;
    }
}

@media screen and (max-width: 500px) {
    .cards {
        transform: translate(0);
    }
    .card {
        width: 260px;
        height: 260px;
    }
    .card-img {
        width: 208px;
        height: 130px;
    }
    .card-disc {
        gap: 16px;
        font-size: 16px;
    }
    .cards {
        top: 100px;
    }
    .main-heading {
        font-size: 28px;
    }
    .main-subheading {
        font-size: 18px;
    }
    .features {
        font-size: 18px;
    }
    .cta-btn {
        font-size: 14px;
        height: 38px;
    }
}

@media screen and (max-width: 440px) {
    .nav {
        padding-top: 0;
        padding-right: 16px;
        padding-bottom: 0;
        padding-left: 16px;
    }

    .logo-text {
        font-size: 24px;
    }

    .sign-in-btn {
        width: 80px;
        height: 36px;
        margin-right: 16px;
    }

    .sign-in-text {
        font-size: 12px;
    }

    main {
        margin-top: 96px;
        margin-right: 16px;
        margin-bottom: 100px;
    }
    .card {
        width: 220px;
        height: 220px;
    }
    .card-img {
        width: 180px;
        height: 110px;
    }
    .card-disc {
        gap: 12px;
        font-size: 14px;
    }
    .cards {
        top: 100px;
        transform: translate(0);
    }
}

@media screen and (max-width: 400px) {
    .card {
        position: relative;
        width: 260px;
        height: 260px;
        margin-bottom: 30px;
        margin-left: auto;
        margin-right: auto;
    }
    .card-img {
        width: 208px;
        height: 130px;
    }

    .cards {
        margin-top: 50px;
        width: 100vw;
        height: auto;
        top: -50px;
        animation-name: CardFadeInMob;
    }

    .card1 {
        left: 0;
        transform: translateX(0);
    }
    .card2 {
        left: 0;
        transform: translateX(0);
    }
    .card3 {
        left: 0;
        transform: translateX(0);
    }
    .card1:hover {
        transform: scale(1.05);
        transition: all 0.5s ease;
        z-index: 10;
    }
    .card2:hover {
        transform: scale(1.05);
        transition: transform 0.5s ease;
        z-index: 10;
    }
    .card3:hover {
        transform: scale(1.05);
        transition: transform 0.5s ease;
        z-index: 10;
    }
}

@keyframes CardFadeIn {
    0% {
        opacity: 0;
        transform: translateX(500px) translateY(500px);
    }
    100% {
        opacity: 1;
        transform: translateY(50px);
    }
}

@keyframes CardFadeInMob {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes Pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
