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

body, html {
    color: white;
    background-color: white;
    font-family: 'Sora', sans-serif;
    scroll-behavior: smooth;
    height: 100%;
}

a {
    text-decoration: none;
    color: white;
}

.link {
    transition: transform 0.2s ease-in-out;
}

.link:hover {
    transform: translateY(-5px);
}

.top_container {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;

    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100%;
}

.home_page {
    background-image: url('../images/landing_cover.png');
}

.how_it_works {
    background-image: url('../images/how_cover.png');
}

header {
    width: 100%;
}

@media (min-width: 768px) {
    body {
        height: auto;
    }

    .top_container {
        padding-left: 5%;
        padding-right: 5%;
        width: 100%;
        height: 100vh;
    }

    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

#logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 24px;
}

@media (min-width: 768px) {
    #logo {
        flex-direction: row;
        justify-content: space-between;
    }
}

#icon img {
    height: 32px;
}

#brand {
    display: flex;
    flex-direction: column;
    font-family: 'Aptos', sans-serif;
    align-items: center;
    font-size: 16px;
}

@media (min-width: 768px) {
    #brand {
        padding-left: 10px;
        font-size: 24px;
    }

    #icon img {
        height: 48px;
    }
}

#brand .brand_line1 {
    font-weight: bold;
}

#top_nav {
    position: absolute;
    width: 240px;
    padding: 10px;
    background-color: #20005F;
    top: 0px;
    left: -240px;
    z-index: 10;
    height: 100%;
}

#menu_button {
    position: absolute;
    top: 10px;
    left: 16px;
}

#menu_close_button {
    position: absolute;
    top: 16px;
    right: 16px;
}

#nav_links {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.menu_item {
    padding: 10px;
    text-shadow: #20005F 2px 2px 2px;
}

.menu_item_last {
    padding-bottom: 32px;
}

.login_button {
    padding: 20px 0px 10px 0px;
    height: 20px;
    border-radius: 10px;
    background-color: aqua;
}

@media (min-width: 768px) {

    #menu_button {
        display: none;
    }

    #menu_close_button {
        display: none;
    }

    #top_nav {
        position: relative;
        width: auto;
        background-color: transparent;
        padding: none;
        left: 0;
        transition: "left 0.5s";
    }
    
    #nav_links {
        flex-direction: row;
        position: relative;
    }

    .menu_item {
        padding: 10px 20px 0px 0px;
    }

    .login_button {
        padding: 0px 0px 0px 40px;
    }
}

#hero_content {
    position: absolute;
    bottom: 10%;
    right: 16px;
    left: 16px;
    text-shadow: 2px 2px 2px black;
}

#hero_content h1 {
    font-size: 24px;
}

@media (min-width: 768px) {
    #hero_content {
        width: 50%;
        left: 5%;
    }

    #hero_content h1 {
        font-size: 48px;
    }
}

#hero_button {
    padding: 20px 0px 10px 0px;
}

.main_content {
    margin: 0px 5% 16px 5%;
}

.main_content_full {
    margin: 0px 0px;
}

#description {
    padding: 16px;
    margin: 60px 0px;
    border-radius: 16px;
    box-shadow: 0px 4px 0px 0px #20005F;
}

#description h2 {
    padding: 16px;
    text-align: center;
}

#description p {
    padding: 16px;
}

@media (min-width: 768px) {
    #description {
        padding: 5%;
        border-radius: 44px;
    }
    #description h2 {
        font-size: 36px;
    }
}

#why_use {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 36px;
}

.why_use_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0px;
}

.why_use_item .text_container {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why_use_item .text_container h3 {
    padding: 16px 0px 8px 0px;
    text-align: center;
}

.why_use_item .text_container p {
    font-weight: 200;
}

.why_use_item .image_container {
    min-width: 115px;
    height: 75px;
    border-radius: 10px;
    background-color: rgba(13, 201, 252, 0.24);
}

.why_use_item .image_container img {
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    #why_use {
        margin: 0px 10%;
    }

    .why_use_item {
        flex-direction: row;
        padding: 16px 0px;
        align-items: normal;
    }

    .why_use_item .text_container {
        text-align: left;
        align-items: flex-start;
        padding-left: 16px;
    }

    .why_use_item .text_container h3 {
        padding-top: 0px;
    }

    .why_use_item .image_container {
        min-width: 225px;
        height: 150px;
    }

    .why_use_item .image_container img {
        height: 100%;
    }
}

#estate_settlement {
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

#estate_settlement h2 {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: center;
}

#estate_settlement span {
    font-weight: bold;
}

@media (min-width: 768px) {
    #estate_settlement {
        margin: 48px 10%;
        padding: 5%;
    }

    #estate_settlement h2 {
        font-size: 36px;
        margin-bottom: 24px;
    }
}

#remember {
    margin-top: 32px;
    background-color: #3A41CA;
    width: 100%;
    background-image: linear-gradient(rgba(58, 65, 202, 0.88), rgba(58, 65, 202, 0.88)), url('../images/logo_icon.svg');
    background-repeat: repeat;
    background-origin: content-box;
    background-clip: content-box;
    background-size: 36px;
}

#remember h2 {
    text-align: center;
    padding: 16px;
}

#remember p {
    padding: 0px 32px 16px 32px;
}

#remember p span {
    font-weight: bold;
}

#remember_background {
    position: absolute;
    background-image: url('../images/logo_icon.svg');
    background-repeat: repeat;
    background-origin: content-box;
    background-clip: content-box;
    opacity: 0.1;
    background-size: calc(48px - 16px) calc(48px - 16px);
    background-position: 8px 8px;
    z-index: 1;
}

@media (min-width: 768px) {
    #remember h2 {
        padding-top: 48px;
        font-size: 36px;
    }

    #remember p {
        padding: 0px 20% 48px 20%;
    }
}

#security_header {
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

#security_header #security_header_content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#security_header #security_header_content h2 {
    font-size: 24px;
    text-align: center;
}

#security_header #security_header_content button {
    margin-top: 16px;
    max-width: 240px;
}

#security_header #image_container {
    margin: 16px;
    border-radius: 16px;
}

#security_header img {
    height: 80vw;
    max-height: 400px;
}

@media (min-width: 768px) {
    #security_header {
        flex-direction: row;
        padding: 64px 10%;
        align-items: center;
        justify-content: space-around;
    }

    #security_header #image_container {
        border-radius: 32px;
    }

    #security_header #security_header_content {
        max-width: 33%;
        text-align: left;
        align-items: flex-start;
    }

    #security_header #security_header_content h2 {
        font-size: 36px;
        text-align: left;
    }

    #security_header img {
        height: 570px;
    }
}

#encryption {
    margin: 32px 16px;
}

#encryption #images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

}

#encryption #images .image_container {
    height: 80vw;
    border-radius: 16px;
    margin-top: 32px;
}

#images .text_container {
    text-align: center;
    padding: 16px;
    text-shadow: 2px 2px 2px black;
}

#images .text_container p {
    font-size: smaller;
    margin-top: 8px;
}

#transport_encryption {
    background-image: url('../images/transport_encryption.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#storage_encryption {
    background-image: url('../images/storage_encryption.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    #encryption {
        margin: 64px 0px;
    }

    #encryption #images {
        flex-direction: row;
        margin-top: 64px;
        justify-content: space-around;
    }

    #encryption #images .image_container {
        height: 595px;
        width: 570px;
        margin: 0px 16px;

    }

    #images .text_container {
        padding: 32px;
        text-shadow: none;
    }

    #images .text_container p {
        font-size: initial;
        margin-top: 8px;
    }
}

#wmfntk_help {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.wmfntk_help_item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 143px;
    height: 128px;
    border-radius: 16px;
    padding: 16px;
    margin: 16px;
    background-color: rgba(13, 201, 252, 0.24);
}

.wmfntk_help_item img {
    height: 64px;
}

.wmfntk_help_item .text_container {
    font-size: smaller;
}

.wmfntk_help_item_last {
    align-items: flex-end;
    background-color: #4E17A9;

}

.wmfntk_help_item .image_container {
    text-align: right;
}

@media (min-width: 768px) {

    .wmfntk_help_item {
        width: 200px;
        height: 200px;
    }

    .wmfntk_help_item img {
        height: 100px;
    }

    .wmfntk_help_item .text_container {
        font-size: initial;
    }
}

#bottom_CTA {
    text-align: center;
    margin-top: 32px;
    padding: 16px;
}

#bottom_CTA button {
    color: white;
}

.separator {
    margin: 48px 0px;
    width: 100%;
    height: 1px;
    background-color: #20005F;
}

@media (min-width: 768px) {
    .separator {
        margin: 64px 0px;
    }
}

#resources {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    font-size: smaller;
    text-align: center;
    max-width: 300px;
}

.resource_item img {
    margin: 0px 16px;
    width: 200px;
    border-radius: 16px;
}

@media (min-width: 768px) {

    .resource_item {
        margin: 16px;
    }

    .resource_item img {
        width: 300px;
    }
}

.section_header {
    text-align: center;
    padding-top: 16px;
}

.section_header h2 {
    font-size: 24px;
    color: #20005F;
    margin: 8px 0px;
}

.section_header p {
    font-size: smaller;
    color: #4E17A9;
    margin: 8px 0px;
}

.section_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    color: black;
}

#get_organized {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#step_image {
    width: 300px;
    height: 315px;
    border-radius: 16px;
    margin-bottom: 16px;
}

#step_image img {
    width: 100%;
    height: 100%;
}

#steps {
    display: flex;
    flex-direction: column;
}

.step {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 1.2rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    #get_organized .section_content {
        flex-direction: row;
        align-items: normal;
    }

    #step_image {
        width: 400px;
        height: 420px;
        min-width: 400px;
        min-height: 420px;
        margin-bottom: 0px;
        margin-left: 5%;
    }

    #steps {
        padding-left: 32px;
        padding-right: 5%;
    }

    .step:hover {
        transform: translateY(-5px);
    }
}

@media (min-width: 768px) {
    .section_header {
        padding-top: 32px;
    }
    .section_header h2 {
        font-size: 36px;
        margin: 16px 0px;
    }

    .section_header p {
        font-size: initial;
        margin: 16px 0px;
    }
}

#definitions {
    margin-top: 16px;
}

#lifeproxy {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

#lifeproxy .section_header {
    margin-top: -32px;
    margin-bottom: 16px;
}

#lifebyte {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

#lifebyte .section_header {
    margin-top: -32px;
    margin-bottom: 16px;
}

#definitions .image_container {
    min-width: 280px;
    min-height: 200px;
}

#definitions .image_container img {
    width: 100%;
    height: 100%;
}

#lifeproxy .section_header p {
    text-align: left;
}
#lifebyte .section_header p {
    text-align: left;
}

@media (min-width: 768px) {
    #definitions .image_container {
        min-width: 570px;
        min-height: 420px;
    }

    #lifeproxy {
        flex-direction: row-reverse;
    }

    #lifeproxy .section_header {
        text-align: left;
        margin-right: 64px;
    }

    #lifebyte {
        flex-direction: row;
    }

    #lifebyte .section_header {
        text-align: left;
        margin-left: 64px;
    }
}

#lifebyte_types .section_header {
    text-align: left;
}

@media (min-width: 768px) {
    #lifebyte_types .section_header {
        text-align: center;
    }
}

.lifebyte_type {
    min-width: 240px;
    min-height: 260px;
    background-color: #F9F9FB;
    border-radius: 16px;
    text-align: center;
    color: black;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
}

.lifebyte_content {
    text-align: left;
    padding: 60% 16px 16px 16px;
}

.physical {
    background-image: url('../images/how_it_works/lifebytes/physical.png');
}

.financial {
    background-image: url('../images/how_it_works/lifebytes/financial.png');
}

.legal {
    background-image: url('../images/how_it_works/lifebytes/legal.png');
}

.instructions {
    background-image: url('../images/how_it_works/lifebytes/instructions.png');
}

#get_started {
    display: flex;
    flex-direction: column;
}

#get_started .section_header {
    text-align: left;
    position: absolute;
    margin: -16px 16px 16px 16px;
}

#get_started h2 {
    margin-bottom: 16px;
    text-shadow: 2px 2px 2px black;
    color: white;
}

#get_started_image {
    display: flex;
    flex-direction: row;
    justify-content: reverse;
    width: 100%;
 }

 #get_started_image img {
    width: 100%;
}

@media (min-width: 768px) {

    #get_started .section_header {
        margin: -16px 32px;
    }

    #get_started h2 {
        margin-bottom: 32px;
    }

    #get_started_image img {
        width: 80%;
        margin-left: auto;
    }
}

#footer {
    color: white;
    min-height: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:16px 0px;
    margin-top: auto;
}

#footer p {
    padding: 16px;
    font-size: smaller;
}

#footer_links {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 8px;
    height: 100%;
}

#footer_links .link_group {
    display: flex;
    flex-direction: column;
    align-items: normal;
    padding: 8px;
}

.footer_link {
    padding: 8px;
    font-size: smaller;
}

@media (min-width: 768px) {
    #footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 5%;
    }

    #footer p {
        padding: 0px;
    }

    .footer_link {
        font-size: initial;
    }
}

.black {
    color: black !important;
}

.grid-container {
    display: grid;
    gap: 1.2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Default: 1 item per row for very small screens */
    grid-template-columns: 1fr;
}

/* 2 items per row for small screens */
@media (min-width: 576px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource_list .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 3 items per row for medium screens */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .resource_list .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 4 items per row for large screens */
@media (min-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .resource_list .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Testimonial Styles */
.testimonial {
    background: #f8fafc;
    color: #22223b;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(32,0,95,0.08);
    margin: 20px auto;
    max-width: 98%;
    padding: 32px 32px 24px 32px;
    position: relative;
    font-size: 1.1rem;

    @media (min-width: 1024px) {
        margin: 40px auto;
        max-width: 80%;
    }
}

.testimonial blockquote {
    text-align: left;
    margin: 0;
    padding: 0 0 0 32px;
    border-left: 5px solid #4E17A9;
    background: none;
    font-style: italic;
    position: relative;
}

.testimonial blockquote p {
    margin-bottom: 1.2em;
    line-height: 1.6;
}

.testimonial blockquote footer {
    text-align: right;
    margin-top: 1.5em;
    font-style: normal;
    color: #4E17A9;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.testimonial-name {
    font-weight: bold;
}

.testimonial-age {
    color: #64748b;
    font-weight: normal;
    font-size: 0.95em;
}