/* Button Components */
.btn-primary, .btn-secondary {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--bright-purple), var(--light-purple));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bright-purple);
}

/* Modern Logo Components */
.modern-logo {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.logo-core {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: logoRotate 3s linear infinite;
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--bright-purple);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--bright-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--bright-purple);
    animation: pointGlow 1s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-point::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: 50%;
    opacity: 0.3;
    animation: pointRipple 2s ease-out infinite;
}

.data-point::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: inherit;
    border-radius: 50%;
    opacity: 0.1;
    animation: pointRipple 2s ease-out infinite 0.5s;
}

.point-1 {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.point-2 {
    top: 30%;
    right: 10%;
    animation-delay: 0.3s;
}

.point-3 {
    bottom: 30%;
    right: 10%;
    animation-delay: 0.6s;
}

.point-4 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.9s;
}

.point-5 {
    bottom: 30%;
    left: 10%;
    animation-delay: 1.2s;
}

.point-6 {
    top: 30%;
    left: 10%;
    animation-delay: 1.5s;
}

/* Theme-specific logo styles */
.theme-labels .data-point {
    background: var(--green-accent);
    box-shadow: 0 0 10px var(--green-accent);
}

.theme-labels .logo-ring {
    border-color: var(--green-accent);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
}

.theme-boundingBoxes .data-point {
    background: var(--blue-accent);
    box-shadow: 0 0 10px var(--blue-accent);
}

.theme-boundingBoxes .logo-ring {
    border-color: var(--blue-accent);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.theme-segmentation .data-point {
    background: var(--orange-accent);
    box-shadow: 0 0 10px var(--orange-accent);
}

.theme-segmentation .logo-ring {
    border-color: var(--orange-accent);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
}

/* Card Components */
.service-card, .contact-card {
    position: relative;
    overflow: hidden;
}

.service-card::before, .contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before, .contact-card:hover::before {
    left: 100%;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading States */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States */
.btn-primary:focus, .btn-secondary:focus {
    outline: 2px solid var(--bright-purple);
    outline-offset: 2px;
}

.nav-links a:focus {
    outline: 2px solid var(--bright-purple);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .logo-core,
    .logo-ring,
    .data-point,
    .service-card:hover,
    .contact-card:hover {
        animation: none;
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card,
    .contact-card {
        border: 2px solid var(--text-primary);
    }
    
    .btn-secondary {
        border: 2px solid var(--text-primary);
    }
}