/* Clean Futuristic Styles */

/* 1. Mesh Gradient Background */
.mesh-blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #00ced1 0%, rgba(255,255,255,0) 70%);
}

.blob-2 {
    bottom: 0%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #39ff14 0%, rgba(255,255,255,0) 70%);
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* 2. Glass Cards (Floating 3D Elements) */
.perspective-container {
    perspective: 1000px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease-out; /* For JS tilt */
}

.card-main {
    width: 280px;
    height: 350px;
    z-index: 10;
}

.card-small {
    width: 120px;
    height: 120px;
    z-index: 5;
}

.card-top-right {
    top: 10%;
    right: 10%;
    animation: floatCard 6s infinite ease-in-out;
}

.card-bottom-left {
    bottom: 10%;
    left: 10%;
    animation: floatCard 8s infinite ease-in-out reverse;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 3. Utility for 3D Tilt */
.kit-card {
    transition: transform 0.3s ease;
}
.kit-card:hover {
    transform: translateY(-10px);
}

/* 3D Stack Logic */
.card-stack {
    perspective: 1000px;
}

.stack-card {
    /* Base styles are in HTML (Tailwind), these handle the 3D positioning */
    transform-origin: 50% 100%; /* Pivot from bottom */
}

/* 3D Stack Logic */
/* FAN STACK STYLES */
.fan-stack {
    perspective: 1000px;
    position: relative;
}

.fan-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white; /* Solid white to cover cards behind */
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth snap */
    transform-origin: bottom center; /* Pivot from bottom like a hand of cards */
    cursor: pointer;
}

/* 1. The Active Card (Front & Center) */
.active-card {
    z-index: 30;
    transform: rotate(0deg) translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.3);
}

/* 2. The Right Card (Tucked Behind Right) */
.right-card {
    z-index: 20;
    transform: rotate(15deg) translateX(40px) translateY(10px) scale(0.9);
    opacity: 0.8;
    filter: brightness(0.95); /* Slightly darker to show depth */
}
/* Hover effect for Right card */
.right-card:hover {
    transform: rotate(20deg) translateX(50px) translateY(-10px) scale(0.92);
    z-index: 25; /* Pop up slightly */
}

/* 3. The Left Card (Tucked Behind Left) */
.left-card {
    z-index: 10;
    transform: rotate(-15deg) translateX(-40px) translateY(10px) scale(0.9);
    opacity: 0.8;
    filter: brightness(0.95);
}
/* Hover effect for Left card */
.left-card:hover {
    transform: rotate(-20deg) translateX(-50px) translateY(-10px) scale(0.92);
    z-index: 25;
}

/* ^footer */
/* 3D SOCIAL BUTTONS */
.social-3d {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Circle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
    /* The 3D Magic */
    position: relative;
    top: 0;
    transition: all 0.1s ease-in-out;
    box-shadow: 0 5px 0 rgba(0,0,0,0.2), /* The "Side" of the button */
                0 10px 10px rgba(0,0,0,0.1); /* The drop shadow */
}

/* Hover State: Button rises slightly */
.social-3d:hover {
    top: -2px;
    box-shadow: 0 7px 0 rgba(0,0,0,0.2),
                0 15px 15px rgba(0,0,0,0.1);
}

/* Active State: Button is "Pressed" down */
.social-3d:active {
    top: 5px; /* Moves down equal to the shadow height */
    box-shadow: 0 0 0 rgba(0,0,0,0.2), /* Shadow disappears */
                inset 0 3px 5px rgba(0,0,0,0.2); /* Inner shadow for depth */
}

/* FEATURE CARD HOVER EFFECTS */
.feature-card {
    will-change: transform; /* Performance optimization */
}

.feature-card:hover {
    transform: translateY(-10px); /* Lifts the card up */
}

/* ~ about */
/* Pixel-Perfect Border System */
.border-draw::before,
.border-draw::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid transparent; /* Thick precise border */
    width: 0;
    height: 0;
}

.active-border .border-draw::before {
    animation: draw-tr 0.6s forwards ease-in-out;
    border-top-color: currentColor;
    border-right-color: currentColor;
}
.active-border .border-draw::after {
    animation: draw-bl 0.6s forwards ease-in-out 0.4s;
    border-bottom-color: currentColor;
    border-left-color: currentColor;
}

@keyframes draw-tr {
    0% { width: 0; height: 0; }
    50% { width: 100%; height: 0; }
    100% { width: 100%; height: 100%; }
}
@keyframes draw-bl {
    0% { width: 0; height: 0; }
    50% { width: 100%; height: 0; }
    100% { width: 100%; height: 100%; }
}

/* Glass UI Console */
#log-text {
    letter-spacing: -0.02em;
}