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

body {
    font-family: Quicksand, Arial;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ededed;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 3rem;
    font-weight: 300;
} */

.transition-overlay.slide-from-left {
    animation: slideFromLeft 0.8s ease-in-out forwards;
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slideFromBottom {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}


.transition-overlay.slide-from-left {
    animation: slideFromLeft 0.8s ease-in-out forwards;
    opacity: 1;
}

.transition-overlay.slide-from-right {
    animation: slideFromRight 0.8s ease-in-out forwards;
    opacity: 1;
}

.transition-overlay.slide-from-bottom {
    animation: slideFromBottom 0.8s ease-in-out forwards;
    opacity: 1;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    max-width: 90%;
    height: auto;
    margin-top: -500px;
    margin-bottom: -150px;
    /* margin-left: -50px; */
    animation: slideInFromTop 1s ease-out;
    z-index: 1;
    filter: drop-shadow(8px 8px 50px rgba(0, 0, 0, 0.5));
}

.services {
    display: grid;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    grid-template-columns: 1fr;
    place-items: center;
}

.card-group {
    display: contents;
    opacity: 1;
}

.card-group.hidden {
    display: none;
}

.card-group.fade-out {
    animation: simpleFadeOut 0.3s ease-out forwards;
}

.card-group.slide-in {
    animation: slideInFromBottom 0.5s ease-out;
}

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

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-card.fade-out,
.janloc-card.fade-out {
    animation: simpleFadeOut 0.3s ease-out forwards;
}

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

.card-group.slide-in {
    animation: slideInFromBottom 0.5s ease-out;
}

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

.toggle-btn {
    margin-top: 2rem;
    padding: 12px 30px;
    background: #4a4a4a;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Archivo Black", sans-serif;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    min-width: 200px;
    min-height: 50px;
}

.toggle-btn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .services {
        grid-template-columns: 1fr;
    }
}

/* tablet 768 ===================================================== */
@media (max-width: 768px) {
  .logo {
    margin-left: 0;
    margin-top: -500px;
    margin-bottom: -150px;
  }
}

/* tablet 650 ===================================================== */
@media (max-width: 700px) {
  .logo {
    margin-top: -500px;
    margin-bottom: -125px;
  }
}

/* tablet 650 ===================================================== */
@media (max-width: 600px) {
  .logo {
    margin-top: -150px;
    margin-bottom: -100px;
    max-width: 100%;
  }
}

/* tablet 650 ===================================================== */
@media (max-width: 475px) {
  .logo {
    margin-left: -10px;
    margin-top: -150px;
    margin-bottom: -100px;
    max-width: 110%;
  }
}

/* tablet 650 ===================================================== */
@media (max-width: 475px) {
  .logo {
    margin-left: -10px;
    margin-top: -100px;
    margin-bottom: -100px;
    max-width: 110%;
  }
}

/* tablet 650 ===================================================== */
@media (max-width: 325px) {
  .logo {
    margin-left: -35px;
    margin-top: -100px;
    margin-bottom: -100px;
    max-width: 125%;
  }
}