html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #58C7FC;
    background-image: url('../images/background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
}

header {
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    z-index: 10;
}

h1 {
    display:none;
}

.logo {
    max-width: 350px;
    height: auto;
    animation: swing 6s ease-in-out infinite;
    position: relative;
    transition: max-width 0.45s ease;
}

@keyframes swing {
    0% {
        transform: rotate(-7deg);
    }
    50% {
        transform: rotate(7deg);
    }
    100% {
        transform: rotate(-7deg);
    }
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 35px;
    margin-left: auto;
    margin-right: auto;
    max-width: 420px;
    transition: grid-template-columns 0.45s ease, max-width 0.45s ease, width 0.45s ease;
}

.card-double {
    grid-column: span 3;
}

.card-double .card-button {
    width: 100%;
}

.card-container {
    position: relative;
    perspective: 1000px;
    display: block;
    text-decoration: none;
}

.card-button {
    position: relative;
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, width 0.45s ease, height 0.45s ease;
    cursor: pointer;
    overflow: hidden;
}

.shine {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 80%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.45s ease-out, opacity 0.45s ease-out;
    opacity: 0;
}

.card-button:hover .shine {
    opacity: 1;
}

.social-logo {
    width: 70px;
    height: auto;
    margin-bottom: 10px;
    transition: width 0.45s ease, height 0.45s ease;
}

.sablier-logo {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
    transition: width 0.45s ease, height 0.45s ease;
}

.card-content {
    text-align: center;
    transform-style: preserve-3d;
}

.card-title {
    font-size: 19px;
    font-weight: bold;
    color: #333;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    transform-style: preserve-3d;
    transition: font-size 0.45s ease;
}

.card-text {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
    font-family: 'Poppins', sans-serif;
    transform-style: preserve-3d;
    transition: font-size 0.45s ease;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color:white;
}

.loader-icon {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    animation: spin 1.5s linear infinite;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.7);
    transition: width 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.modal.show .modal-content {
    transform: scale(1);
    width: 90%;
    max-width: 500px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.show {
    opacity: 1;
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    transition: width 0.3s ease, padding 0.3s ease;
}

#contact-form label {
    margin-top: 10px;
    text-align: left;
    width: 100%;
    transition: width 0.3s ease;
}

#contact-form input, 
#contact-form textarea {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    transition: width 0.3s ease;
}

#contact-form textarea {
    height: 150px;
    resize: none;
}

#contact-form button {
    margin-top: 15px;
    padding: 10px;
    background-color: #3FACDF;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

#contact-form button:hover {
    background-color: #2F95C9;
}

.recaptcha-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 17px;
    box-sizing: border-box;
}

.g-recaptcha {
    max-width: 300px;
    width: auto;
    margin-right: 2px;
}

#success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
    text-align: center;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

#success-message.show {
    opacity: 1;
    visibility: visible;
}

#success-message p {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

#success-logo {
    max-height: 13px;
    margin-left:3px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
}

#loading-indicator.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 8px;
    height: 40px;
    border-radius: 4px;
    display: block;
    margin: 20px auto;
    position: relative;
    background: currentColor;
    color: #FFF;
    box-sizing: border-box;
    animation: animloader 0.3s 0.3s linear infinite alternate;
}
  
.spinner::after, .spinner::before {
    content: '';
    width: 8px;
    height: 40px;
    border-radius: 4px;
    background: currentColor;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    box-sizing: border-box;
    animation: animloader 0.3s 0.45s linear infinite alternate;
}
.spinner::before {
    left: -20px;
    animation-delay: 0s;
}
  
@keyframes animloader {
    0%   { height: 48px} 
    100% { height: 4px}
}

#loading-indicator p {
    color: #fff;
    font-size: 16px;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 700px) {
    .cards-container {
        display: grid;
        grid-template-columns: repeat(2, 150px);
        gap: 20px;
        justify-items: center;
        align-items: center;
        margin: 0 auto;
        aspect-ratio: auto;
        max-width: 100%;
        box-sizing: border-box;
        width: fit-content;
        height: fit-content;
        padding-top: 40px;
        transition: grid-template-columns 0.45s ease, max-width 0.45s ease, width 0.45s ease;
    }

    .card-double {
        grid-column: span 2;
        width: 100%;
    }

    .card-button {
        width: 150px;
        height: 150px;
    }

    .shine {
        width: 90px;
        height: 90px;
    }

    .social-logo {
        width: 50px;
        height: auto;
    }

    .card-title {
        font-size: 13px;
    }

    .card-text {
        font-size: 10px;
    }

    .logo {
        max-width: 250px;
    }
    
    .modal-content {
        max-width: 250px;
        transition: width 0.3s ease;
    }
    
    .recaptcha-container {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-top: 17px;
        box-sizing: border-box;
    }
    
    .g-recaptcha {
        max-width: 300px;
        width: auto;
        margin-right: 2px;
    }

    #success-logo {
        max-height: 13px;
        margin-left:3px;
    }
}

@media (max-width: 350px) {
    .cards-container {
        display: grid;
        grid-template-columns: repeat(2, 120px);
        gap: 20px;
        justify-items: center;
        align-items: center;
        margin: 0 auto;
        aspect-ratio: auto;
        max-width: 100%;
        box-sizing: border-box;
        width: fit-content;
        height: fit-content;
        padding-top: 30px;
        transition: grid-template-columns 0.45s ease, max-width 0.45s ease, width 0.45s ease;
    }

    .card-double {
        grid-column: span 2;
        width: 100%;
    }

    .card-button {
        width: 120px;
        height: 120px;
    }

    .shine {
        width: 70px;
        height: 70px;
    }

    .social-logo {
        width: 35px;
        height: auto;
    }

    .card-title {
        font-size: 11.5px;
    }

    .card-text {
        font-size: 8px;
    }

    .logo {
        max-width: 200px;
    }
    
    .modal-content {
        max-width: 175px;
        transition: width 0.3s ease;
    }
    
    .recaptcha-container {
        justify-content: flex-end;
        width: 100%;
        margin-top: 10px;
    }

    .g-recaptcha {
        max-width: 100%;
        width: 90%;
        margin-right: 2px;
    }

    #success-logo {
        max-height: 13px;
        margin-left:3px;
    }
}