/* Floating Globes Styles */
.hero-cards-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 500px;
    perspective: 1000px;
    overflow: visible;
}

.hero-globe {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

/* Globe Positions */
.hero-globe:nth-child(1) {
    top: 20px;
    left: 50px;
    animation-delay: 0s;
}

.hero-globe:nth-child(2) {
    top: 80px;
    right: 30px;
    animation-delay: -2s;
}

.hero-globe:nth-child(3) {
    top: 200px;
    left: 20px;
    animation-delay: -4s;
}

.hero-globe:nth-child(4) {
    top: 280px;
    right: 80px;
    animation-delay: -1s;
}

.hero-globe:nth-child(5) {
    top: 380px;
    left: 120px;
    animation-delay: -3s;
}

/* Globe Link */
.globe-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Globe Sphere */
.globe-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Globe Gradients for each type */
.globe-blog .globe-sphere {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow:
        0 0 30px rgba(255, 107, 107, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.globe-course .globe-sphere {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow:
        0 0 30px rgba(79, 172, 254, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.globe-test .globe-sphere {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow:
        0 0 30px rgba(102, 126, 234, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.globe-forum .globe-sphere {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow:
        0 0 30px rgba(168, 237, 234, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.globe-document .globe-sphere {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    box-shadow:
        0 0 30px rgba(252, 182, 159, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Globe Surface Pattern */
.globe-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.1) 3px, transparent 3px);
    background-size: 40px 40px, 60px 60px, 80px 80px;
    animation: rotate 20s linear infinite;
}

/* Globe Icon */
.globe-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 32px;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: iconFloat 4s ease-in-out infinite;
}

/* Globe Label */
.globe-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-20px) rotateX(5deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Hover Effects */
.hero-globe:hover {
    transform: translateY(-10px) scale(1.1);
    animation-play-state: paused;
}

.hero-globe:hover .globe-sphere {
    box-shadow:
        0 0 50px rgba(255, 255, 255, 0.3),
        0 0 100px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.hero-globe:hover .globe-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hero-globe:hover .globe-icon {
    animation-play-state: paused;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Glow effects for each globe type */
.globe-blog:hover .globe-sphere {
    box-shadow:
        0 0 50px rgba(255, 107, 107, 0.6),
        0 0 100px rgba(255, 107, 107, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.globe-course:hover .globe-sphere {
    box-shadow:
        0 0 50px rgba(79, 172, 254, 0.6),
        0 0 100px rgba(79, 172, 254, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.globe-test:hover .globe-sphere {
    box-shadow:
        0 0 50px rgba(102, 126, 234, 0.6),
        0 0 100px rgba(102, 126, 234, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.globe-forum:hover .globe-sphere {
    box-shadow:
        0 0 50px rgba(168, 237, 234, 0.6),
        0 0 100px rgba(168, 237, 234, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.globe-document:hover .globe-sphere {
    box-shadow:
        0 0 50px rgba(252, 182, 159, 0.6),
        0 0 100px rgba(252, 182, 159, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-cards-container {
        max-width: 350px;
        height: 400px;
    }

    .hero-globe {
        width: 90px;
        height: 90px;
    }

    .hero-globe:nth-child(1) {
        top: 10px;
        left: 30px;
    }

    .hero-globe:nth-child(2) {
        top: 60px;
        right: 20px;
    }

    .hero-globe:nth-child(3) {
        top: 150px;
        left: 10px;
    }

    .hero-globe:nth-child(4) {
        top: 220px;
        right: 60px;
    }

    .hero-globe:nth-child(5) {
        top: 300px;
        left: 80px;
    }

    .globe-icon {
        font-size: 24px;
    }

    .globe-label {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Hover Effects */
.hero-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 10 !important;
}

.hero-card:hover .card-overlay {
    opacity: 1;
}

.hero-card:hover .card-img {
    transform: scale(1.05);
}

.hero-card:hover .card-title {
    color: #6366f1;
}

.hero-card:hover .card-category {
    color: #4f46e5;
}

@media (max-width: 576px) {
    .hero-cards-container {
        max-width: 300px;
        height: 350px;
    }

    .hero-globe {
        width: 70px;
        height: 70px;
    }

    .hero-globe:nth-child(1) {
        top: 5px;
        left: 20px;
    }

    .hero-globe:nth-child(2) {
        top: 50px;
        right: 15px;
    }

    .hero-globe:nth-child(3) {
        top: 120px;
        left: 5px;
    }

    .hero-globe:nth-child(4) {
        top: 180px;
        right: 40px;
    }

    .hero-globe:nth-child(5) {
        top: 250px;
        left: 60px;
    }

    .globe-icon {
        font-size: 20px;
    }

    .globe-label {
        font-size: 9px;
        padding: 3px 6px;
        bottom: -30px;
    }
}

/* Space Background Effect */
.hero-cards-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: starField 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes starField {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Button Outline Style */
.btn-outline {
    background: transparent !important;
    border: 2px solid currentColor !important;
    color: inherit !important;
}

.btn-outline:hover {
    background: currentColor !important;
    color: white !important;
}
