/* --- Magic 3D & Animation Effects --- */

/* Floating Animation */
@keyframes float-3d {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
}

.magic-float {
    animation: float-3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Gradient Text */
.text-magic-gradient {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 50%, #d63384 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Separators (SVG Waves) */
.magic-separator-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.magic-separator-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.magic-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.magic-separator .shape-fill {
    fill: #FFFFFF;
}

.gray-bg .magic-separator .shape-fill {
    fill: #f8f9fa;
}

/* 3D Tilt Card Effect on Hover */
.tilt-card {
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.tilt-card:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.02);
    z-index: 10;
}

/* Glowing Background Blobs */
.magic-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: blob-bounce 10s infinite alternate;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(0, 123, 255, 0.2);
}

.blob-2 {
    bottom: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: rgba(102, 16, 242, 0.2);
}

@keyframes blob-bounce {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

/* Blog Card Enhancement */
.blog-card-magic {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
}

.blog-card-magic:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-thumb {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.blog-card-magic:hover .blog-thumb img {
    transform: scale(1.1);
}

.blog-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: #1a3a6c;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-content {
    padding: 25px;
}

.blog-tag {
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #1a3a6c;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: #007bff;
}

.read-more-link {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more-link i {
    margin-left: 8px;
    transition: margin 0.3s;
}

.read-more-link:hover {
    color: #007bff;
}

.read-more-link:hover i {
    margin-left: 12px;
}
