/* CARDS */
.card {
    background: rgba(255, 255, 255, 0.03); /*glassy effect :) */
    border-radius: 20px; /*apple corners*/
    padding: 2.5rem;
    transition: all 0.8s ease;
    border: 1px solid rgba(64, 224, 208, 0.1);
    backdrop-filter: blur(10px); /*glassy effect*/
    transform-style: preserve-3d; /*enables animations*/
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*uses js to update mouse coordinates*/
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow:
        0 15px 35px rgba(64, 224, 208, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

/* SECTION TITLES */
.section-title,
.cyan-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text; /*has compatibility warning*/
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after,
.cyan-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* BUTTONS */
.button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.5s ease;
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 5px 15px rgba(64, 224, 208, 0.2),
        0 10px 30px rgba(32, 178, 170, 0.1);
}

/* FLOATING ELEMENTS */
.floating-element {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(64, 224, 208, 0.05), transparent);
    pointer-events: none;
    z-index: -1;
}

.float-1 {
    top: 20%;
    left: 10%;
    animation: float1 20s infinite;
}

.float-2 {
    bottom: 30%;
    right: 15%;
    animation: float2 20s infinite;
}

@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-5px);
    }
}
